diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectInfoController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectInfoController.java index e17988bc..86b3277f 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectInfoController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectInfoController.java @@ -112,7 +112,7 @@ public class BmProjectInfoController extends BaseController{ public AjaxResult edit(@Validated @RequestBody BmProjectInfo bmProjectInfo) { - return toAjax(bmProjectInfoService.updateBmProjectInfo(bmProjectInfo)); + return bmProjectInfoService.updateBmProjectInfo(bmProjectInfo); } @Log(title = "项目管理导出", businessType = BusinessType.EXPORT) diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectLotController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectLotController.java index 2b732253..166856c8 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectLotController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmProjectLotController.java @@ -85,7 +85,7 @@ public class BmProjectLotController extends BaseController { @PutMapping public AjaxResult edit(@Validated @RequestBody BmProjectLot bmProjectLot) { - return toAjax(bmProjectLotService.updateBmProjectLot(bmProjectLot)); + return bmProjectLotService.updateBmProjectLot(bmProjectLot); } } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmUnitInfoController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmUnitInfoController.java index 30cc6966..600a0838 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmUnitInfoController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/controller/BmUnitInfoController.java @@ -14,6 +14,7 @@ import com.bonus.sgzb.common.security.utils.SecurityUtils; import com.bonus.sgzb.system.api.domain.SysUser; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; @@ -33,6 +34,7 @@ import java.util.stream.Collectors; @Api(tags = "往来单位") @RestController @RequestMapping("/bmUnitInfo") +@Slf4j public class BmUnitInfoController extends BaseController{ @Autowired @@ -106,6 +108,7 @@ public class BmUnitInfoController extends BaseController{ @PostMapping public AjaxResult unitInfoAdd(@Validated @RequestBody BmUnitInfo bmUnitInfo) { + log.info("新增往来单位参数:{}", bmUnitInfo); return bmUnitInfoService.unitInfoAdd(bmUnitInfo); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectInfoMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectInfoMapper.java index ff976035..5982c416 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectInfoMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectInfoMapper.java @@ -21,5 +21,5 @@ public interface BmProjectInfoMapper { public int deleteProjectInfoById(Long proId); - int selectByName(String proName); + BmProjectInfo selectByName(String proName); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectLotMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectLotMapper.java index 624700c7..1b726dbb 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectLotMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmProjectLotMapper.java @@ -20,5 +20,5 @@ public interface BmProjectLotMapper { public int deleteProjectLotById(Long lotId); - int selectByName(String lotName); + BmProjectLot selectByName(String lotName); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmUnitInfoMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmUnitInfoMapper.java index fdf85a6d..42a9ab83 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmUnitInfoMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/BmUnitInfoMapper.java @@ -26,5 +26,5 @@ public interface BmUnitInfoMapper { public int deleteUnitInfoById(Long unitId); - Integer selectByName(String unitName); + BmUnitInfo selectByName(String unitName); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/SysDicMapper.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/SysDicMapper.java index 53c5fd0e..32a70fc3 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/SysDicMapper.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/mapper/SysDicMapper.java @@ -82,5 +82,5 @@ public interface SysDicMapper * @param name * @return */ - Integer selectByName(String name); + SysDic selectByName(String name); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectInfoService.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectInfoService.java index 1c5419e0..e31e25f6 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectInfoService.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectInfoService.java @@ -16,7 +16,7 @@ public interface BmProjectInfoService { public void remove(Long[] proIds); - public int updateBmProjectInfo(BmProjectInfo bmProjectInfo); + public AjaxResult updateBmProjectInfo(BmProjectInfo bmProjectInfo); public int deleteProjectInfoById(Long proId); diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectLotService.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectLotService.java index f5cb18f4..f5c9fbc0 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectLotService.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/BmProjectLotService.java @@ -15,7 +15,7 @@ public interface BmProjectLotService { public void remove(Long[] proIds); - public int updateBmProjectLot(BmProjectLot bmProjectLot); + public AjaxResult updateBmProjectLot(BmProjectLot bmProjectLot); public int deleteProjectLotById(Long lotId); diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectInfoServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectInfoServiceImpl.java index 4d622035..f4a7a983 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectInfoServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectInfoServiceImpl.java @@ -34,8 +34,8 @@ public class BmProjectInfoServiceImpl implements BmProjectInfoService { @Override public AjaxResult projectInfoAdd(BmProjectInfo bmProjectInfo) { - int count = bmProjectInfoMapper.selectByName(bmProjectInfo.getProName()); - if (count != 0) { + BmProjectInfo info = bmProjectInfoMapper.selectByName(bmProjectInfo.getProName()); + if (StringUtils.isNotNull(info)) { return AjaxResult.error("新增工程项目名称重复,请重新提交!!!"); } return AjaxResult.success(bmProjectInfoMapper.projectInfoAdd(bmProjectInfo)); @@ -47,8 +47,14 @@ public class BmProjectInfoServiceImpl implements BmProjectInfoService { } @Override - public int updateBmProjectInfo(BmProjectInfo bmProjectInfo) { - return bmProjectInfoMapper.updateBmProjectInfo(bmProjectInfo); + public AjaxResult updateBmProjectInfo(BmProjectInfo bmProjectInfo) { + if (StringUtils.isNotEmpty(bmProjectInfo.getProName())) { + BmProjectInfo info = bmProjectInfoMapper.selectByName(bmProjectInfo.getProName()); + if (StringUtils.isNotNull(info) && info.getProId() != bmProjectInfo.getProId()) { + return AjaxResult.error("修改工程项目名称重复,请重新提交!!!"); + } + } + return AjaxResult.success(bmProjectInfoMapper.updateBmProjectInfo(bmProjectInfo)); } @Override diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectLotServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectLotServiceImpl.java index c73f4371..04d77d9b 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectLotServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmProjectLotServiceImpl.java @@ -4,6 +4,7 @@ package com.bonus.sgzb.base.service.impl; import com.bonus.sgzb.base.domain.BmProjectLot; import com.bonus.sgzb.base.mapper.BmProjectLotMapper; import com.bonus.sgzb.base.service.BmProjectLotService; +import com.bonus.sgzb.common.core.utils.StringUtils; import com.bonus.sgzb.common.core.web.domain.AjaxResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -30,8 +31,8 @@ public class BmProjectLotServiceImpl implements BmProjectLotService { @Override public AjaxResult projectLotAdd(BmProjectLot bmProjectLot) { - int count = bmProjectLotMapper.selectByName(bmProjectLot.getLotName()); - if (count != 0) { + BmProjectLot info = bmProjectLotMapper.selectByName(bmProjectLot.getLotName()); + if (StringUtils.isNotNull(info)) { return AjaxResult.error("新增标段工程名称重复,请重新提交!!!"); } return AjaxResult.success(bmProjectLotMapper.projectLotAdd(bmProjectLot)); @@ -43,8 +44,14 @@ public class BmProjectLotServiceImpl implements BmProjectLotService { } @Override - public int updateBmProjectLot(BmProjectLot bmProjectLot) { - return bmProjectLotMapper.updateBmProjectLot(bmProjectLot); + public AjaxResult updateBmProjectLot(BmProjectLot bmProjectLot) { + if (StringUtils.isNotEmpty(bmProjectLot.getLotName())) { + BmProjectLot info = bmProjectLotMapper.selectByName(bmProjectLot.getLotName()); + if (StringUtils.isNotNull(info) && info.getLotId() != bmProjectLot.getLotId()) { + return AjaxResult.error("修改标段工程名称重复,请重新提交!!!"); + } + } + return AjaxResult.success(bmProjectLotMapper.updateBmProjectLot(bmProjectLot)); } @Override diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmUnitInfoServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmUnitInfoServiceImpl.java index 187c527f..4652f1c8 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmUnitInfoServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/BmUnitInfoServiceImpl.java @@ -46,8 +46,8 @@ public class BmUnitInfoServiceImpl implements BmUnitInfoService { @Override public AjaxResult unitInfoAdd(BmUnitInfo bmUnitInfo) { - Integer count = bmUnitInfoMapper.selectByName(bmUnitInfo.getUnitName()); - if (count != 0) { + BmUnitInfo info = bmUnitInfoMapper.selectByName(bmUnitInfo.getUnitName()); + if (StringUtils.isNotNull(info)) { return AjaxResult.error("新增往来单位名称重复,请重新提交!!!"); } return AjaxResult.success(bmUnitInfoMapper.unitInfoAdd(bmUnitInfo)); @@ -60,9 +60,11 @@ public class BmUnitInfoServiceImpl implements BmUnitInfoService { @Override public AjaxResult updateBmUnitInfo(BmUnitInfo bmUnitInfo) { - Integer count = bmUnitInfoMapper.selectByName(bmUnitInfo.getUnitName()); - if (count != 0) { - return AjaxResult.error("往来单位名称已经存在,请重新修改提交!!!"); + if (StringUtils.isNotEmpty(bmUnitInfo.getUnitName())) { + BmUnitInfo info = bmUnitInfoMapper.selectByName(bmUnitInfo.getUnitName()); + if (StringUtils.isNotNull(info) && info.getUnitId() != bmUnitInfo.getUnitId()) { + return AjaxResult.error("往来单位名称已经存在,请重新修改提交!!!"); + } } return AjaxResult.success(bmUnitInfoMapper.updateBmUnitInfo(bmUnitInfo)); } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/MaintenanceGangServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/MaintenanceGangServiceImpl.java index 86251b10..451a0d2c 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/MaintenanceGangServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/MaintenanceGangServiceImpl.java @@ -56,15 +56,15 @@ public class MaintenanceGangServiceImpl implements MaintenanceGangService { @Override public int deleteByIds(MaintenanceGang bean) { - int i = 0; + int i = 1; if(StringHelper.isNotEmpty(bean.getType())){ if("1".equals(bean.getType())){ - i = MaintenanceGangMapper.deleteByIds(bean.getTypeIds()); + MaintenanceGangMapper.deleteByIds(bean.getTypeIds()); }else{ if(StringHelper.isNotEmpty(bean.getTypeIds())){ List list = new ArrayList<>(); String[] splitTypeIds = bean.getTypeIds().split("@"); - i = MaintenanceGangMapper.deleteByIdsAll(splitTypeIds); + MaintenanceGangMapper.deleteByIdsAll(splitTypeIds); } } } diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/SysDicServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/SysDicServiceImpl.java index 07f482f7..5708e80a 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/SysDicServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/SysDicServiceImpl.java @@ -7,6 +7,7 @@ import com.bonus.sgzb.base.domain.BmUnitType; import com.bonus.sgzb.base.mapper.SysDicMapper; import com.bonus.sgzb.base.service.ISysDicService; import com.bonus.sgzb.common.core.utils.DateUtils; +import com.bonus.sgzb.common.core.utils.StringUtils; import com.bonus.sgzb.common.core.web.domain.AjaxResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -79,8 +80,8 @@ public class SysDicServiceImpl implements ISysDicService public AjaxResult insertSysDic(SysDic sysDic) { sysDic.setCreateTime(DateUtils.getNowDate()); - Integer count = sysDicMapper.selectByName(sysDic.getName()); - if (count != 0) { + SysDic info = sysDicMapper.selectByName(sysDic.getName()); + if (StringUtils.isNotNull(info)) { return AjaxResult.error("新增单位类型名称重复,请重新提交!!!"); } return AjaxResult.success(sysDicMapper.insertSysDic(sysDic)); @@ -95,8 +96,8 @@ public class SysDicServiceImpl implements ISysDicService @Override public AjaxResult updateSysDic(SysDic sysDic) { - Integer count = sysDicMapper.selectByName(sysDic.getName()); - if (count != 0) { + SysDic info = sysDicMapper.selectByName(sysDic.getName()); + if (StringUtils.isNotNull(info) && info.getId().longValue() != sysDic.getId()) { return AjaxResult.error("单位类型名称已经存在,请重新修改提交!!!"); } return AjaxResult.success(sysDicMapper.updateSysDic(sysDic)); diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/WarehouseKeeperServiceImpl.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/WarehouseKeeperServiceImpl.java index dba39925..f7517fe7 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/WarehouseKeeperServiceImpl.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/base/service/impl/WarehouseKeeperServiceImpl.java @@ -58,15 +58,15 @@ public class WarehouseKeeperServiceImpl implements WarehouseKeeperService { @Override public int deleteByIds(WarehouseKeeper bean) { - int i = 0; + int i = 1; if(StringHelper.isNotEmpty(bean.getType())){ if("1".equals(bean.getType())){ - i = warehouseKeeperMapper.deleteByIds(bean.getTypeIds()); + warehouseKeeperMapper.deleteByIds(bean.getTypeIds()); }else{ if(StringHelper.isNotEmpty(bean.getTypeIds())){ List list = new ArrayList<>(); String[] splitTypeIds = bean.getTypeIds().split("@"); - i = warehouseKeeperMapper.deleteByIdsAll(splitTypeIds); + warehouseKeeperMapper.deleteByIdsAll(splitTypeIds); } } } diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectInfoMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectInfoMapper.xml index d1a39e7c..61ff5b82 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectInfoMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectInfoMapper.xml @@ -138,8 +138,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.company_id = #{companyId} - + select * from bm_project_info where 1 = 1 and pro_name = #{proName} diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectLotMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectLotMapper.xml index a0079479..b2589849 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectLotMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmProjectLotMapper.xml @@ -86,12 +86,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ORDER BY a.lot_id DESC - + select * from bm_project_lot where 1 = 1 and lot_name = #{lotName} + insert into bm_project_lot ( lot_name, diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmUnitInfoMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmUnitInfoMapper.xml index 61bada04..9cc45fb4 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmUnitInfoMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/BmUnitInfoMapper.xml @@ -171,8 +171,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND type_name = #{typeName} - + select * from bm_unit_info where 1 = 1 and unit_name = #{unitName} diff --git a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/SysDicMapper.xml b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/SysDicMapper.xml index bba515ed..d753cde6 100644 --- a/sgzb-modules/sgzb-base/src/main/resources/mapper/base/SysDicMapper.xml +++ b/sgzb-modules/sgzb-base/src/main/resources/mapper/base/SysDicMapper.xml @@ -63,12 +63,13 @@ where id = '0' - + select * from sys_dic + where + 1 = 1 + and name = #{name} + insert into sys_dic diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/PlanManagementController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/PlanManagementController.java index 6197b591..ee36add0 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/PlanManagementController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/PlanManagementController.java @@ -130,7 +130,7 @@ public class PlanManagementController extends BaseController { */ @ApiOperation("根据id删除计划管理") @DeleteMapping("/deleteById/{planId}") - public AjaxResult addOrUpdate(@PathVariable(name = "计划ID",value = "planId") Long planId){ + public AjaxResult addOrUpdate(@PathVariable(value = "planId") Long planId){ return AjaxResult.success(planManagementService.deleteById(planId)); } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java index dc6bf9cb..bf75bae8 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/AgreementInfo.java @@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; +import java.util.List; /** * @author lsun @@ -129,4 +130,9 @@ public class AgreementInfo extends BaseEntity { private String cost; @ApiModelProperty(value = "结算状态") private String sltStatus; + + /** 导出选中列表 */ + @ApiModelProperty(value = "导出选中列表") + private List dataCondition; + } diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/AgreementInfoMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/AgreementInfoMapper.xml index 3c4ca5f4..613bca23 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/AgreementInfoMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/AgreementInfoMapper.xml @@ -121,6 +121,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and bp.lot_id = #{projectId} + + AND bai.agreement_id in + + #{agreementId} + + ORDER BY bai.agreement_id DESC diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml index ea3df5d3..f00f4267 100644 --- a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/BackApplyMapper.xml @@ -688,6 +688,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and bai.back_time =#{time} + + + GROUP BY bai.id, us.user_name, bai.phone, bpl.lot_name, bui.unit_name, bagi.plan_start_time ORDER BY bai.create_time desc diff --git a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue index 53d6634e..72345a8d 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue @@ -576,6 +576,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.agreementId) + console.log(this.ids) this.single = selection.length != 1 this.multiple = !selection.length }, @@ -662,13 +663,17 @@ export default { }, /** 导出按钮操作 */ handleExport() { - this.download( - 'material/agreementInfo/export', - { - ...this.queryParams, - }, - `协议_${new Date().getTime()}.xlsx` - ) + if (this.ids.length) { + this.download( + 'material/agreementInfo/export', + { + dataCondition: this.ids, + }, + `协议_${new Date().getTime()}.xlsx` + ) + } else { + this.$modal.msgWarning('请选择要导出的数据') + } }, }, } diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue index 47af551d..13954c3b 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue @@ -327,7 +327,7 @@ export default { }, } }, - created() { + mounted() { this.GetUserInfo() this.GetUnitData() diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue index 11c14d42..00efea36 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveExamine.vue @@ -1,5 +1,5 @@ @@ -343,6 +350,7 @@ export default { }, taskId: '', isView: false, + isShow: false, isEdit: false, isCheck: false, addForm: { @@ -397,6 +405,12 @@ export default { }, }, created() { + const isShow = this.$route.query && this.$route.query.isShow + if (isShow && isShow == 'true') { + this.isShow = true + } else { + this.isShow = false + } const taskId = this.$route.query && this.$route.query.taskId this.taskId = taskId if (this.taskId == '' || !this.taskId) { @@ -406,14 +420,12 @@ export default { this.getTaskInfo() } const isView = this.$route.query && this.$route.query.isView - console.log(this.isView, 'isView') if (isView && isView == 'true') { this.isView = true } else { this.isView = false } const isCheck = this.$route.query && this.$route.query.isCheck - console.log(this.isCheck, 'isCheck') if (isCheck && isCheck == 'true') { this.isCheck = true } else { diff --git a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue index f6bf1c60..b563b276 100644 --- a/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue +++ b/sgzb-ui/src/views/store/newBuy/newAccessory/newAccessoryList.vue @@ -1,11 +1,19 @@ diff --git a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue index 7456122b..d6653140 100644 --- a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue +++ b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue @@ -1,50 +1,50 @@ --> + - - - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + + + + + 批量通过 + + + 批量不通过 + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - - - - - - 批量通过 - - - 批量不通过 - - - - - - - - - - - - - - - - - - - - - - - - - - + --> + - - - - + + + + - - - + + + diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index 750c4ea9..3edf076b 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -44,7 +44,7 @@ module.exports = { // target: `http://10.40.92.8:8080`, //超 target: `http://10.40.92.81:8080`, //韩 - // target: `http://10.40.92.209:8080`,//川/ + // target: `http://10.40.92.74:8080`,//旭/ // target: `http://10.40.92.153:8080`, //帅 // target: `http://10.40.92.14:8080`, //福