正式环境修改

master
杜函宇 3 months ago
parent 3ac23096b8
commit fcdb5e60c7

@ -13,6 +13,7 @@ import com.ruoyi.jjh.declaration.entity.request.EnterpriseInfoRequest;
import com.ruoyi.jjh.declaration.entity.request.EnterpriseInfoWorkRequest; import com.ruoyi.jjh.declaration.entity.request.EnterpriseInfoWorkRequest;
import com.ruoyi.jjh.declaration.service.IBmsEnterpriseBasicInfoService; import com.ruoyi.jjh.declaration.service.IBmsEnterpriseBasicInfoService;
import com.ruoyi.jjh.ent.entity.JHeadQuartersRevenue; import com.ruoyi.jjh.ent.entity.JHeadQuartersRevenue;
import com.ruoyi.jjh.ent.entity.JServicesList;
import com.ruoyi.jjh.ent.service.JHeadQuartersRevenueService; import com.ruoyi.jjh.ent.service.JHeadQuartersRevenueService;
import com.ruoyi.jjh.ent.service.JServicesListService; import com.ruoyi.jjh.ent.service.JServicesListService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -145,53 +146,25 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
/** /**
* *
*/ */
// @ApiOperation(value = "将企业库企业更改分类", response = BmsEnterpriseBasicInfo.class) @ApiOperation(value = "将企业库企业更改分类", response = BmsEnterpriseBasicInfo.class)
// @GetMapping(value = "/changeType") @PreAuthorize("@ss.hasAnyRoles('admin')")
// public AjaxResult changeType() { @GetMapping(value = "/changeType")
// List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list(); public AjaxResult changeType() {
//生产性服务业 List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
// List<JServicesList> list1 = jServicesListService.lambdaQuery().eq(JServicesList::getServicesType, 1).list(); //生活性服务业
//限上批零住餐 List<JServicesList> list1 = jServicesListService.lambdaQuery().eq(JServicesList::getServicesType, 2).list();
// List<JServicesList> list2 = jServicesListService.lambdaQuery().eq(JServicesList::getServicesType, 4).list(); for (BmsEnterpriseBasicInfo x : list) {
// //总部企业 for (JServicesList y : list1) {
// List<JHeadQuartersRevenue> list3 = jHeadQuartersRevenueService.list(); if (x.getTyshxydm().equals(y.getTyshxydm())) {
// for (BmsEnterpriseBasicInfo x : list) { if ("2".equals(x.getType())) {
// for (JServicesList y : list1) { x.setType("7");
// if(x.getTyshxydm().equals(y.getTyshxydm())){ } else {
// if(x.getType()==null){ x.setType(x.getType() + "," + "7");
// x.setType("5"); }
// }else { bmsEnterpriseBasicInfoService.updateById(x);
// x.setType(x.getType()+","+"5"); }
// } }
// bmsEnterpriseBasicInfoService.updateById(x); }
// } return success();
// } }
// }
// for (BmsEnterpriseBasicInfo x : list) {
// for (JServicesList y : list2) {
// if(x.getTyshxydm().equals(y.getTyshxydm())){
// if(x.getType()==null){
// x.setType("6");
// }else {
// x.setType(x.getType()+","+"6");
// }
// bmsEnterpriseBasicInfoService.updateById(x);
// }
// }
// }
// for (BmsEnterpriseBasicInfo x : list) {
// for (JHeadQuartersRevenue y : list3) {
// if (x.getTyshxydm().equals(y.getTyshxydm())) {
// if (x.getType() == null) {
// x.setType("4");
// } else {
// x.setType(x.getType() + "," + "4");
// }
// bmsEnterpriseBasicInfoService.updateById(x);
// }
// }
// }
// return success();
// }
} }

@ -41,9 +41,9 @@ public class BmsEnterpriseBasicInfo extends BaseInfoEntity {
/** /**
* 1. 2 3 4 5 6 * 1. 2 3 4 5 6
*/ */
@ApiModelProperty("分类 1.规上服务业 2其他 3规上工业 4总部企业 5生产性服务业 6限上批零住餐") @ApiModelProperty("分类 1.规上服务业 2其他 3规上工业 4总部企业 5生产性服务业 6限上批零住餐 7生活性服务业")
@JSONField(serialize = false) @JSONField(serialize = false)
@Excel(name = "分类", readConverterExp = "1.规上服务业 2其他 3规上工业 4总部企业 5生产性服务业 6限上批零住餐") @Excel(name = "分类", readConverterExp = "1.规上服务业 2其他 3规上工业 4总部企业 5生产性服务业 6限上批零住餐 7生活性服务业")
private String type; private String type;

Loading…
Cancel
Save