工商登记信息
This commit is contained in:
parent
ae013c0ca2
commit
1c43e1dd61
|
|
@ -11,6 +11,8 @@ import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/crmXzqhDm")
|
@RequestMapping("/crmXzqhDm")
|
||||||
@Api(tags = "行政区划代码")
|
@Api(tags = "行政区划代码")
|
||||||
|
|
@ -26,6 +28,11 @@ public class CrmXzqhDmController {
|
||||||
IPage<CrmXzqhDm> xzqhDmPage = crmXzqhDmService.getXzqhDmPage(pageNum, pageSize);
|
IPage<CrmXzqhDm> xzqhDmPage = crmXzqhDmService.getXzqhDmPage(pageNum, pageSize);
|
||||||
return R.ok(xzqhDmPage);
|
return R.ok(xzqhDmPage);
|
||||||
}
|
}
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation("行政区划列表")
|
||||||
|
public Result<List<CrmXzqhDm>> getXzqhDmList() {
|
||||||
|
return R.ok(crmXzqhDmService.getXzqhDmList());
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("插入税务机关代码")
|
@ApiOperation("插入税务机关代码")
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ public class CrmQueryGsdjxxDTO implements Serializable {
|
||||||
// 评价年度
|
// 评价年度
|
||||||
private String xzqhDm;
|
private String xzqhDm;
|
||||||
|
|
||||||
|
//地址
|
||||||
|
private String xzqhMc;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "{" +
|
return "{" +
|
||||||
|
|
|
||||||
|
|
@ -168,4 +168,7 @@ public class CrmGsdjxx implements Serializable {
|
||||||
*/
|
*/
|
||||||
@TableField(typeHandler = SensitiveDataConverter.class, jdbcType = JdbcType.VARCHAR)
|
@TableField(typeHandler = SensitiveDataConverter.class, jdbcType = JdbcType.VARCHAR)
|
||||||
private String jyfw; // 对应SQL: jyfw
|
private String jyfw; // 对应SQL: jyfw
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dz;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -637,7 +637,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
entity.put("email","");
|
entity.put("email","");
|
||||||
entity.put("website","");
|
entity.put("website","");
|
||||||
entity.put("remark","");
|
entity.put("remark","");
|
||||||
entity.put("address",gsdjxx.getScjydz());
|
entity.put("address","");
|
||||||
crmModel.setEntity(entity);
|
crmModel.setEntity(entity);
|
||||||
List<CrmModelFiledVO> list = new ArrayList<>();
|
List<CrmModelFiledVO> list = new ArrayList<>();
|
||||||
//加入时间
|
//加入时间
|
||||||
|
|
@ -647,7 +647,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
fieldDomqff.setName("加入时间");
|
fieldDomqff.setName("加入时间");
|
||||||
fieldDomqff.setFieldType(0);
|
fieldDomqff.setFieldType(0);
|
||||||
fieldDomqff.setType(13);
|
fieldDomqff.setType(13);
|
||||||
fieldDomqff.setValue(new Date());
|
fieldDomqff.setValue("");
|
||||||
list.add(fieldDomqff);
|
list.add(fieldDomqff);
|
||||||
//企业税号
|
//企业税号
|
||||||
CrmModelFiledVO fieldZzmdcm = new CrmModelFiledVO();
|
CrmModelFiledVO fieldZzmdcm = new CrmModelFiledVO();
|
||||||
|
|
@ -692,7 +692,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
fliedKjhmgc.setName("客户详细地址");
|
fliedKjhmgc.setName("客户详细地址");
|
||||||
fliedKjhmgc.setFieldType(0);
|
fliedKjhmgc.setFieldType(0);
|
||||||
fliedKjhmgc.setType(2);
|
fliedKjhmgc.setType(2);
|
||||||
fliedKjhmgc.setValue("");
|
fliedKjhmgc.setValue(gsdjxx.getScjydz());
|
||||||
list.add(fliedKjhmgc);
|
list.add(fliedKjhmgc);
|
||||||
//姓名 fliedJeqgso 1101928
|
//姓名 fliedJeqgso 1101928
|
||||||
CrmModelFiledVO fliedJeqgso = new CrmModelFiledVO();
|
CrmModelFiledVO fliedJeqgso = new CrmModelFiledVO();
|
||||||
|
|
@ -710,7 +710,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
industry.setName("客户所在地区");
|
industry.setName("客户所在地区");
|
||||||
industry.setFieldType(2);
|
industry.setFieldType(2);
|
||||||
industry.setType(3);
|
industry.setType(3);
|
||||||
industry.setValue("");
|
industry.setValue(gsdjxx.getDz());
|
||||||
list.add(industry);
|
list.add(industry);
|
||||||
//客户级别 level 1101833
|
//客户级别 level 1101833
|
||||||
CrmModelFiledVO level = new CrmModelFiledVO();
|
CrmModelFiledVO level = new CrmModelFiledVO();
|
||||||
|
|
@ -757,7 +757,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
||||||
// fliedBcethz.setType(5);
|
// fliedBcethz.setType(5);
|
||||||
// fliedBcethz.setValue("");
|
// fliedBcethz.setValue("");
|
||||||
// list.add(fliedBcethz);
|
// list.add(fliedBcethz);
|
||||||
// crmModel.setField(list);
|
crmModel.setField(list);
|
||||||
//添加客户数据
|
//添加客户数据
|
||||||
Integer customerId = crmOpenApiService.crmAddCustomer(crmModel, "工商新开业登记信息");
|
Integer customerId = crmOpenApiService.crmAddCustomer(crmModel, "工商新开业登记信息");
|
||||||
//添加联系人数据
|
//添加联系人数据
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,7 @@ public class CrmGsdjxxServiceImpl extends BaseServiceImpl<CrmGsdjxxMapper,CrmGsd
|
||||||
if (one == null) {
|
if (one == null) {
|
||||||
crmGsdjxx.setYf(crmQueryGsdjxxDTO.getYf());
|
crmGsdjxx.setYf(crmQueryGsdjxxDTO.getYf());
|
||||||
crmGsdjxx.setXzqhDm(crmQueryGsdjxxDTO.getXzqhDm());
|
crmGsdjxx.setXzqhDm(crmQueryGsdjxxDTO.getXzqhDm());
|
||||||
|
crmGsdjxx.setDz(crmQueryGsdjxxDTO.getXzqhMc());
|
||||||
crmGsdjxxesNew.add(crmGsdjxx);
|
crmGsdjxxesNew.add(crmGsdjxx);
|
||||||
customerService.addCustomerByDjxx(crmGsdjxx);
|
customerService.addCustomerByDjxx(crmGsdjxx);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue