Compare commits

..

No commits in common. '63fde845cf1b360eb25f198bceee09fae346fe4c' and '6e908e6b45a22fde0ded5893d9fd1a91e1f4c976' have entirely different histories.

@ -9,57 +9,18 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tc.entity.AssetBasicNetwork; import com.ruoyi.tc.entity.*;
import com.ruoyi.tc.entity.AssetBusinessForm; import com.ruoyi.tc.entity.po.*;
import com.ruoyi.tc.entity.AssetCurrent;
import com.ruoyi.tc.entity.AssetExport;
import com.ruoyi.tc.entity.AssetSupplyChain;
import com.ruoyi.tc.entity.Unit;
import com.ruoyi.tc.entity.UnitOtherConcat;
import com.ruoyi.tc.entity.po.AssetBasicNetworkCpPo;
import com.ruoyi.tc.entity.po.AssetBasicNetworkJyPo;
import com.ruoyi.tc.entity.po.AssetBusinessFormCpPo;
import com.ruoyi.tc.entity.po.AssetBusinessFormJyPo;
import com.ruoyi.tc.entity.po.AssetCurrentCpPo;
import com.ruoyi.tc.entity.po.AssetCurrentJyPo;
import com.ruoyi.tc.entity.po.AssetSupplyChainCpPo;
import com.ruoyi.tc.entity.po.AssetSupplyChainJyPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatCpPo;
import com.ruoyi.tc.entity.po.UnitOtherConcatJyPo;
import com.ruoyi.tc.entity.request.Acomma; import com.ruoyi.tc.entity.request.Acomma;
import com.ruoyi.tc.entity.request.AssetAuditPageRequest; import com.ruoyi.tc.entity.request.AssetAuditPageRequest;
import com.ruoyi.tc.entity.request.AssetAuditRequest; import com.ruoyi.tc.entity.request.AssetAuditRequest;
import com.ruoyi.tc.entity.request.AssetCurrentPageRequest; import com.ruoyi.tc.entity.request.AssetCurrentPageRequest;
import com.ruoyi.tc.service.AssetBasicNetworkCpService; import com.ruoyi.tc.service.*;
import com.ruoyi.tc.service.AssetBasicNetworkJyService;
import com.ruoyi.tc.service.AssetBasicNetworkService;
import com.ruoyi.tc.service.AssetBusinessFormCpService;
import com.ruoyi.tc.service.AssetBusinessFormJyService;
import com.ruoyi.tc.service.AssetBusinessFormService;
import com.ruoyi.tc.service.AssetCurrentCpService;
import com.ruoyi.tc.service.AssetCurrentJyService;
import com.ruoyi.tc.service.AssetCurrentService;
import com.ruoyi.tc.service.AssetSupplyChainCpService;
import com.ruoyi.tc.service.AssetSupplyChainJyService;
import com.ruoyi.tc.service.AssetSupplyChainService;
import com.ruoyi.tc.service.AssetTaskService;
import com.ruoyi.tc.service.UnitOtherConcatCpService;
import com.ruoyi.tc.service.UnitOtherConcatJyservice;
import com.ruoyi.tc.service.UnitOtherConcatService;
import com.ruoyi.tc.service.UnitService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -612,61 +573,61 @@ public class AssetCurrentController extends BaseController {
queryWrapper1.eq("task_id", i); queryWrapper1.eq("task_id", i);
queryWrapper1.ne("status", 5); queryWrapper1.ne("status", 5);
AssetCurrentCpPo x = assetCurrentCpService.getOne(queryWrapper1); AssetCurrentCpPo x = assetCurrentCpService.getOne(queryWrapper1);
if (BeanUtil.isEmpty(x)) {
Integer status = x.getStatus();
Long currentId = x.getCurrentId();
AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
BeanUtil.copyProperties(assetCurrent, assetCurrentCpPo);
assetCurrentCpPo.setTaskId(i);
assetCurrentCpPo.setCurrentId(currentId);
assetCurrentCpPo.setStatus(status);
assetCurrentCpService.updateById(assetCurrentCpPo);
QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
queryWrapper2.eq("asset_id", assetCurrent.getId());
queryWrapper2.eq("task_id", i);
assetSupplyChainCpService.remove(queryWrapper2);
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
queryWrapper3.eq("task_id", i);
queryWrapper3.eq("asset_id", assetCurrent.getId());
assetBasicNetworkCpService.remove(queryWrapper3);
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
queryWrapper4.eq("task_id", i);
queryWrapper4.eq("asset_id", assetCurrent.getId());
assetBusinessFormCpService.remove(queryWrapper4);
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
queryWrapper5.eq("asset_id", assetCurrent.getId());
queryWrapper5.eq("task_id", i);
unitOtherConcatCpService.remove(queryWrapper5);
if (assetCurrent.getXjgywxt() != null) { Integer status = x.getStatus();
assetCurrentCpPo.getXjgywxt().setAssetId(assetCurrent.getId()); Long currentId = x.getCurrentId();
assetCurrentCpPo.getXjgywxt().setTaskId(i); AssetCurrentCpPo assetCurrentCpPo = new AssetCurrentCpPo();
assetBusinessFormCpService.save(assetCurrentCpPo.getXjgywxt()); BeanUtil.copyProperties(assetCurrent, assetCurrentCpPo);
} assetCurrentCpPo.setTaskId(i);
if (assetCurrent.getGylxxList() != null) { assetCurrentCpPo.setCurrentId(currentId);
for (AssetSupplyChainCpPo items : assetCurrentCpPo.getGylxxList()) { assetCurrentCpPo.setStatus(status);
items.setAssetId(assetCurrent.getId()); assetCurrentCpService.updateById(assetCurrentCpPo);
items.setTaskId(i);
} QueryWrapper<AssetSupplyChainCpPo> queryWrapper2 = new QueryWrapper<>();
//新增供应链 queryWrapper2.eq("asset_id", assetCurrent.getId());
assetSupplyChainCpService.saveBatch(assetCurrentCpPo.getGylxxList()); queryWrapper2.eq("task_id", i);
assetSupplyChainCpService.remove(queryWrapper2);
QueryWrapper<AssetBasicNetworkCpPo> queryWrapper3 = new QueryWrapper<>();
queryWrapper3.eq("task_id", i);
queryWrapper3.eq("asset_id", assetCurrent.getId());
assetBasicNetworkCpService.remove(queryWrapper3);
QueryWrapper<AssetBusinessFormCpPo> queryWrapper4 = new QueryWrapper<>();
queryWrapper4.eq("task_id", i);
queryWrapper4.eq("asset_id", assetCurrent.getId());
assetBusinessFormCpService.remove(queryWrapper4);
QueryWrapper<UnitOtherConcatCpPo> queryWrapper5 = new QueryWrapper<>();
queryWrapper5.eq("asset_id", assetCurrent.getId());
queryWrapper5.eq("task_id", i);
unitOtherConcatCpService.remove(queryWrapper5);
if (assetCurrent.getXjgywxt() != null) {
assetCurrentCpPo.getXjgywxt().setAssetId(assetCurrent.getId());
assetCurrentCpPo.getXjgywxt().setTaskId(i);
assetBusinessFormCpService.save(assetCurrentCpPo.getXjgywxt());
}
if (assetCurrent.getGylxxList() != null) {
for (AssetSupplyChainCpPo items : assetCurrentCpPo.getGylxxList()) {
items.setAssetId(assetCurrent.getId());
items.setTaskId(i);
} }
if (assetCurrent.getJcwlList() != null) { //新增供应链
for (AssetBasicNetworkCpPo items : assetCurrentCpPo.getJcwlList()) { assetSupplyChainCpService.saveBatch(assetCurrentCpPo.getGylxxList());
items.setAssetId(assetCurrent.getId()); }
items.setTaskId(i); if (assetCurrent.getJcwlList() != null) {
} for (AssetBasicNetworkCpPo items : assetCurrentCpPo.getJcwlList()) {
//新增基础网络 items.setAssetId(assetCurrent.getId());
assetBasicNetworkCpService.saveBatch(assetCurrentCpPo.getJcwlList()); items.setTaskId(i);
} }
if (assetCurrent.getOtherConcat() != null) { //新增基础网络
for (UnitOtherConcatCpPo items : assetCurrentCpPo.getOtherConcat()) { assetBasicNetworkCpService.saveBatch(assetCurrentCpPo.getJcwlList());
items.setAssetId(assetCurrent.getId()); }
items.setTaskId(i); if (assetCurrent.getOtherConcat() != null) {
} for (UnitOtherConcatCpPo items : assetCurrentCpPo.getOtherConcat()) {
//新增其他联系人 items.setAssetId(assetCurrent.getId());
unitOtherConcatCpService.saveBatch(assetCurrentCpPo.getOtherConcat()); items.setTaskId(i);
} }
//新增其他联系人
unitOtherConcatCpService.saveBatch(assetCurrentCpPo.getOtherConcat());
} }
} }
return success(); return success();

@ -233,9 +233,6 @@
<if test="req.xtlx!=null and req.xtlx!='' "> <if test="req.xtlx!=null and req.xtlx!='' ">
and b.xtlx = #{req.xtlx} and b.xtlx = #{req.xtlx}
</if> </if>
<if test="req.xtmc!=null and req.xtmc!='' ">
and b.xtmc = #{req.xtmc}
</if>
</where> </where>
order by FIELD(status,1,0,3,4,5) order by FIELD(status,1,0,3,4,5)
</select> </select>
@ -469,9 +466,6 @@
<if test="req.status!=null "> <if test="req.status!=null ">
and b.status =#{req.status} and b.status =#{req.status}
</if> </if>
<if test="req.xtmc!=null and req.xtmc!='' ">
and b.xcxmc = #{req.xtmc}
</if>
</where> </where>
ORDER BY ORDER BY
@ -506,9 +500,6 @@
<if test="req.status!=null "> <if test="req.status!=null ">
and b.status =#{req.status} and b.status =#{req.status}
</if> </if>
<if test="req.xtmc!=null and req.xtmc!='' ">
and b.gzhmc = #{req.xtmc}
</if>
</where> </where>
ORDER BY ORDER BY
CASE CASE
@ -542,9 +533,6 @@
<if test="req.status!=null "> <if test="req.status!=null ">
and b.status =#{req.status} and b.status =#{req.status}
</if> </if>
<if test="req.xtmc!=null and req.xtmc!='' ">
and b.dzyxhz = #{req.xtmc}
</if>
</where> </where>
ORDER BY ORDER BY
CASE CASE
@ -555,6 +543,8 @@
b.STATUS ASC b.STATUS ASC
</select> </select>
<select id="appZcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse"> <select id="appZcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
select select
b.app_name as xtmc, b.app_name as xtmc,
b.ssdw as zcdwmc, b.ssdw as zcdwmc,
@ -578,9 +568,6 @@
<if test="req.status!=null "> <if test="req.status!=null ">
and b.status =#{req.status} and b.status =#{req.status}
</if> </if>
<if test="req.xtmc!=null and req.xtmc!='' ">
and b.app_name = #{req.xtmc}
</if>
</where> </where>
ORDER BY ORDER BY
CASE CASE

Loading…
Cancel
Save