diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/controller/BmUnitPersonController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/controller/BmUnitPersonController.java index d45482f4..909e19ef 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/controller/BmUnitPersonController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/controller/BmUnitPersonController.java @@ -20,7 +20,7 @@ import java.util.List; /** * 往来单位管理Controller - * + * * @author xsheng * @date 2024-09-27 */ @@ -78,9 +78,9 @@ public class BmUnitPersonController extends BaseController @PreventRepeatSubmit @RequiresPermissions("basic:person:remove") @SysLog(title = "往来单位管理", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->解绑往来单位人员") - @DeleteMapping("/{unitId}") - public AjaxResult unbind(@PathVariable Long unitId) + @PostMapping("/unbind") + public AjaxResult unbind(@RequestBody BmUnitPerson bmUnitPerson) { - return bmUnitPersonService.deleteBmUnitPersonByID(unitId); + return bmUnitPersonService.deleteBmUnitPersonByID(bmUnitPerson); } } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/mapper/BmUnitPersonMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/mapper/BmUnitPersonMapper.java index fd2a8bce..e86dd3b6 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/mapper/BmUnitPersonMapper.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/mapper/BmUnitPersonMapper.java @@ -7,16 +7,16 @@ import com.bonus.material.basic.domain.BmUnitPerson; /** * 往来单位管理Mapper接口 - * + * * @author xsheng * @date 2024-09-26 */ -public interface BmUnitPersonMapper +public interface BmUnitPersonMapper { /** * 新增往来单位管理 - * + * * @param bmUnitPerson 往来单位管理 * @return 结果 */ @@ -24,11 +24,11 @@ public interface BmUnitPersonMapper /** * 删除往来单位管理 - * - * @param unitId 往来单位管理主键 + * + * @param bmUnitPerson 往来单位管理主键 * @return 结果 */ - public int deleteBmUnitPersonByID(Long unitId); + public int deleteBmUnitPersonByID(BmUnitPerson bmUnitPerson); /** * 查询往来单位管理列表 diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/IBmUnitPersonService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/IBmUnitPersonService.java index fae803c0..0021967b 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/IBmUnitPersonService.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/IBmUnitPersonService.java @@ -8,16 +8,16 @@ import java.util.List; /** * 往来单位管理Service接口 - * + * * @author xsheng * @date 2024-09-26 */ -public interface IBmUnitPersonService +public interface IBmUnitPersonService { /** * 新增往来单位管理 - * + * * @param bmUnitPerson 往来单位管理 * @return 结果 */ @@ -25,11 +25,11 @@ public interface IBmUnitPersonService /** * 删除往来单位管理信息 - * - * @param unitId 往来单位管理主键 + * + * @param bmUnitPerson 往来单位管理主键 * @return 结果 */ - public AjaxResult deleteBmUnitPersonByID(Long unitId); + public AjaxResult deleteBmUnitPersonByID(BmUnitPerson bmUnitPerson); /** * 查询绑定的往来单位列表 diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/impl/BmUnitPersonServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/impl/BmUnitPersonServiceImpl.java index 55fb4c9e..317fddff 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/impl/BmUnitPersonServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/service/impl/BmUnitPersonServiceImpl.java @@ -24,12 +24,12 @@ import java.util.Map; /** * 往来单位管理Service业务层处理 - * + * * @author xsheng * @date 2024-09-26 */ @Service -public class BmUnitPersonServiceImpl implements IBmUnitPersonService +public class BmUnitPersonServiceImpl implements IBmUnitPersonService { @Resource private BmUnitPersonMapper bmUnitPersonMapper; @@ -45,7 +45,7 @@ public class BmUnitPersonServiceImpl implements IBmUnitPersonService /** * 新增往来单位管理 - * + * * @param bmUnitPerson 往来单位管理 * @return 结果 */ @@ -68,14 +68,14 @@ public class BmUnitPersonServiceImpl implements IBmUnitPersonService /** * 删除往来单位管理信息 - * + * * @param unitId 往来单位管理主键 * @return 结果 */ @Override - public AjaxResult deleteBmUnitPersonByID(Long unitId) + public AjaxResult deleteBmUnitPersonByID(BmUnitPerson bmUnitPerson) { - int result = bmUnitPersonMapper.deleteBmUnitPersonByID(unitId); + int result = bmUnitPersonMapper.deleteBmUnitPersonByID(bmUnitPerson); if (result > 0) { return AjaxResult.success(HttpCodeEnum.SUCCESS.getMsg(), result); } @@ -89,6 +89,7 @@ public class BmUnitPersonServiceImpl implements IBmUnitPersonService */ @Override public List selectBmUnitList(BmUnitPerson bmUnitPerson) { + Long paramId = bmUnitPerson.getUserId(); List bmUnitList = bmUnitPersonMapper.selectBmUnitList(bmUnitPerson); Long[] array = bmUnitList.stream() // 提取 createBy 字段 @@ -110,12 +111,19 @@ public class BmUnitPersonServiceImpl implements IBmUnitPersonService if (CollectionUtils.isNotEmpty(bmUnitList)) { bmUnitList.forEach(item -> { Long userId = item.getUserId(); - if (userId != null) { + if (paramId != null && userId !=null) { + if( userId.equals(paramId)){ + String nickName = nickNameMap.get(paramId); + item.setUserName(nickName != null ? nickName : " "); + + } + + }else{ String nickName = nickNameMap.get(userId); item.setUserName(nickName != null ? nickName : " "); + } - if (item.getUnitId() != null) { - //根据单位id去人员绑定中查询是否绑定,赋值绑定状态 + if(userId !=null){ item.setIsBind(bmUnitMapper.countBmUnitPersonByUnitId(item.getUnitId()) > 0 ? 1 : 0); } extracted(item); @@ -135,7 +143,7 @@ public class BmUnitPersonServiceImpl implements IBmUnitPersonService */ private void extracted(BmUnit unit) { Map labelMap = remoteConfig.getDictValue("bm_unit_type"); - if (unit.getUnitId() != null) { + if (unit.getUserId() != null) { //根据单位id去人员绑定中查询是否绑定,赋值绑定状态 unit.setIsBind(bmUnitMapper.countBmUnitPersonByUnitId(unit.getUnitId()) > 0 ? 1 : 0); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeController.java index 82f33400..6853b660 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeController.java @@ -64,26 +64,20 @@ public class TypeController extends BaseController { List parentIds = typeService.selectParentId(maTypeVo); List maTypeVos = new ArrayList<>(); ExcelUtil util = new ExcelUtil<>(MaTypeVo.class); - Integer pageIndex = Convert.toInt(ServletUtils.getParameter("pageNum"), 1); - Integer pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10); + for (Integer parentId : parentIds) { maTypeVos.addAll(typeService.getListByParentId(parentId.longValue(), maTypeVo)); } + if (BooleanUtils.isTrue(maTypeVo.getDisplayBindRelationship())) { - List finalMaTypeVos = typeService.getMyTypeAndBindUsers(maTypeVos); + Long userId = maTypeVo.getNewUserId(); + List finalMaTypeVos = typeService.getMyTypeAndBindUsers(maTypeVos,userId); util.exportExcel(response, finalMaTypeVos, "物资类型管理数据"); } else { util.exportExcel(response, maTypeVos, "物资类型管理数据"); } } -// @ApiOperation(value = "查询物资类型管理列表(无分页)") -// @RequiresPermissions("ma:type:list") -// @GetMapping("/listNoPage") -// public AjaxResult listNoPage(MaTypeVo type) { -// List list = typeService.selectTypeListAndParentInfo(type); -// return typeService.getMyTypeAndBindUsers(list); -// } @@ -100,6 +94,7 @@ public class TypeController extends BaseController { if (CollectionUtils.isEmpty(parentIds)) { return AjaxResult.success(new ArrayList<>()); } + List maTypeVos = new ArrayList<>(); Integer pageIndex = Convert.toInt(ServletUtils.getParameter("pageNum"), 1); Integer pageSize = Convert.toInt(ServletUtils.getParameter("pageSize"), 10); @@ -107,7 +102,8 @@ public class TypeController extends BaseController { maTypeVos.addAll(typeService.getListByParentId(parentId.longValue(), maTypeVo)); } if (BooleanUtils.isTrue(maTypeVo.getDisplayBindRelationship())) { - List finalMaTypeVos = typeService.getMyTypeAndBindUsers(maTypeVos); + Long userId = maTypeVo.getUserId(); + List finalMaTypeVos = typeService.getMyTypeAndBindUsers(maTypeVos,userId); return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, finalMaTypeVos)); } else { return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, maTypeVos)); diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeKeeperController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeKeeperController.java index 2adbd68d..3b5d9e06 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeKeeperController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeKeeperController.java @@ -72,17 +72,6 @@ public class TypeKeeperController extends BaseController { return success(typeKeeperService.selectTypeKeeperByID(ID)); } - /** - * 新增库管员配置 - */ -// @ApiOperation(value = "新增库管员配置") -// @PreventRepeatSubmit -// @RequiresPermissions("ma:keeper:add") -// @SysLog(title = "库管员配置", businessType = OperaType.INSERT, module = "物资管理->新增库管员配置") -// @PostMapping -// public AjaxResult add(@RequestBody TypeKeeper typeKeeper) { -// return toAjax(typeKeeperService.insertTypeKeeper(typeKeeper)); -// } /** * 新增库管员配置 @@ -138,7 +127,7 @@ public class TypeKeeperController extends BaseController { @PreventRepeatSubmit @RequiresPermissions("ma:keeper:remove") @SysLog(title = "库管员配置", businessType = OperaType.DELETE, logType = 1,module = "物资管理->删除单个库管员配置") - @DeleteMapping + @PostMapping("/unbind") public AjaxResult remove(@RequestBody List typeKeepers) { return toAjax(typeKeeperService.deleteTypeKeeperByUserIdAndTypeId(typeKeepers)); diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeRepairController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeRepairController.java index a31cad36..eb65e729 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeRepairController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/controller/TypeRepairController.java @@ -26,7 +26,7 @@ import com.bonus.common.core.web.page.TableDataInfo; /** * 维修班机具配置Controller - * + * * @author xsheng * @date 2024-09-27 */ @@ -123,7 +123,7 @@ public class TypeRepairController extends BaseController @PreventRepeatSubmit @RequiresPermissions("ma:repair:remove") @SysLog(title = "维修班机具配置", businessType = OperaType.DELETE, module = "仓储管理->删除单个维修班机具配置") - @DeleteMapping + @PostMapping("/unbind") public AjaxResult remove(@RequestBody List typeRepairs) { return toAjax(typeRepairService.deleteTypeRepairByUserIdAndTypeId(typeRepairs)); diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/domain/Type.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/domain/Type.java index bf0a00f4..0e5661b4 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/domain/Type.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/domain/Type.java @@ -39,11 +39,26 @@ public class Type extends BaseEntity { @Excel(name = "库管员昵称") private String keeperNickName; + /** 库管员昵称 */ + @ApiModelProperty(value = "库管员昵称id") + @Excel(name = "库管员昵称id") + private String keeperId; + + /** 左侧树用户id */ + @Excel(name = "库管员昵称id") + @ApiModelProperty(value = "左侧树用户id") + private List keeperArr; + /** 维修员昵称 */ @ApiModelProperty(value = "维修员昵称") @Excel(name = "维修员昵称") private String repairNickName; + /** 维修员昵称 */ + @ApiModelProperty(value = "维修员昵称id") + @Excel(name = "维修员昵称id") + private String repairerId; + private List repairerArr; /** 仓库名称 */ @ApiModelProperty(value = "物资仓库名称") @Excel(name = "物资仓库名称", sort = 6) @@ -170,6 +185,13 @@ public class Type extends BaseEntity { @ApiModelProperty(value = "厂家规格型号") private String facModel; + /** 左侧树用户id */ + @Excel(name = "左侧树用户id") + @ApiModelProperty(value = "左侧树用户id") + private Long userId; + + + /** 推送智慧工程定义的门类分类机具编码 */ @Excel(name = "推送智慧工程定义的门类分类机具编码") @ApiModelProperty(value = "推送智慧工程定义的门类分类机具编码") diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeMapper.java index 611979b3..5b411d29 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeMapper.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeMapper.java @@ -21,7 +21,7 @@ public interface TypeMapper { /** * 查询物资类型 - * + * * @param typeId 物资类型主键 * @return 物资类型 */ @@ -55,7 +55,7 @@ public interface TypeMapper { /** * 查询物资类型列表 - * + * * @param type 物资类型 * @return 物资类型集合 */ @@ -91,7 +91,7 @@ public interface TypeMapper { /** * 新增物资类型 - * + * * @param type 物资类型 * @return 结果 */ @@ -99,7 +99,7 @@ public interface TypeMapper { /** * 修改物资类型 - * + * * @param type 物资类型 * @return 结果 */ @@ -107,7 +107,7 @@ public interface TypeMapper { /** * 删除物资类型 -- 真实删除 - * + * * @param typeId 物资类型主键 * @return 结果 */ @@ -123,7 +123,7 @@ public interface TypeMapper { /** * 批量删除物资类型 -- 逻辑删除 - * + * * @param typeIds 需要删除的数据主键集合 * @return 结果 */ @@ -150,4 +150,12 @@ public interface TypeMapper { int getCountOfCodeMachine(@Param("record") LeaseOutDetails record); int getMachineByCt(LeaseOutDetails record); + + int deleteTypeKeeperByTypeId(Type type); + + int insertTypeKeeper(Type keeper); + + int deleteTypeRepairerByTypeId(Type type); + + int insertTypeRepairer(Type repairer); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/ITypeService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/ITypeService.java index 34472b5c..0a99ed16 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/ITypeService.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/ITypeService.java @@ -16,7 +16,7 @@ import com.bonus.material.ma.domain.vo.MaTypeSelectVo; public interface ITypeService { /** * 查询物资类型 - * + * * @param typeId 物资类型主键 * @return 物资类型 */ @@ -38,7 +38,7 @@ public interface ITypeService { /** * 查询物资类型列表 - * + * * @param type 物资类型 * @return 物资类型集合 */ @@ -59,7 +59,7 @@ public interface ITypeService { /** * 新增物资类型 - * + * * @param type 物资类型 * @return 结果 */ @@ -67,7 +67,7 @@ public interface ITypeService { /** * 修改物资类型 - * + * * @param type 物资类型 * @return 结果 */ @@ -75,7 +75,7 @@ public interface ITypeService { /** * 批量删除物资类型 - * + * * @param typeIds 需要删除的物资类型主键集合 * @return 结果 */ @@ -83,7 +83,7 @@ public interface ITypeService { /** * 删除物资类型信息 - * + * * @param typeId 物资类型主键 * @return 结果 */ @@ -103,5 +103,5 @@ public interface ITypeService { // AjaxResult getMaTypeConfigList(MaTypeConfigDto maTypeConfigDto); - List getMyTypeAndBindUsers(List list); + List getMyTypeAndBindUsers(List list,Long userId); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java index f442b6f3..243d03c2 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/TypeServiceImpl.java @@ -21,6 +21,7 @@ import com.bonus.material.ma.domain.vo.MaTypeSelectVo; import com.bonus.material.warehouse.domain.WhHouseSet; import com.bonus.material.warehouse.service.IWhHouseSetService; import org.apache.commons.collections4.CollectionUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.bonus.material.ma.mapper.TypeMapper; import com.bonus.material.ma.domain.Type; @@ -52,9 +53,10 @@ public class TypeServiceImpl implements ITypeService { @Resource private IWhHouseSetService houseSetService; + /** * 查询物资类型 -- 根据id - * + * * @param typeId 物资类型管理主键 */ @Override @@ -113,7 +115,7 @@ public class TypeServiceImpl implements ITypeService { /** * 查询物资类型管理列表 - * + * * @param type 物资类型管理 * @return 物资类型管理 */ @@ -283,7 +285,7 @@ public class TypeServiceImpl implements ITypeService { /** * 新增物资类型管理 - * + * * @param type 物资类型管理 * @return 结果 */ @@ -306,12 +308,36 @@ public class TypeServiceImpl implements ITypeService { whHouseSet.setTypeId(newTypeId); houseSetService.insertWhHouseSet(whHouseSet); } + + //维护库管信息 + List keeperArr = type.getKeeperArr(); + + if (keeperArr != null && keeperArr.size()>0){ + for(int i=0 ; i repairerArr = type.getRepairerArr(); + if (repairerArr != null && repairerArr.size()>0){ + for(int i=0 ; i keeperArr = type.getKeeperArr(); + + if (keeperArr != null && keeperArr.size()>0){ + typeMapper.deleteTypeKeeperByTypeId(type); + for(int i=0 ; i repairerArr = type.getRepairerArr(); + if (repairerArr != null && repairerArr.size()>0){ + typeMapper.deleteTypeRepairerByTypeId(type); + for(int i=0 ; i getMyTypeAndBindUsers(List list) { + public List getMyTypeAndBindUsers(List list,Long userId) { + List typeRepairList = typeRepairService.selectTypeRepairListAndUserName(new TypeRepair()); List typeKeeperList = typeKeeperService.selectTypeKeeperListAndUserName(new TypeKeeper()); for (MaTypeVo maTypeVo : list) { if (CollectionUtils.isNotEmpty(typeRepairList)) { for (TypeRepair typeRepair : typeRepairList) { if (Objects.nonNull(typeRepair.getTypeId()) && typeRepair.getTypeId().equals(maTypeVo.getTypeId())) { - maTypeVo.setRepairUserId(typeRepair.getUserId()); - maTypeVo.setRepairUserName(typeRepair.getUserName()); - break; + if(userId !=null){ + Long repairerId = typeRepair.getUserId(); + if (repairerId.equals(userId)){ + maTypeVo.setRepairUserId(typeRepair.getUserId()); + maTypeVo.setRepairUserName(typeRepair.getUserName()); + } + + }else{ + maTypeVo.setRepairUserId(typeRepair.getUserId()); + maTypeVo.setRepairUserName(typeRepair.getUserName()); + + } + + + } } } if (CollectionUtils.isNotEmpty(typeKeeperList)) { for (TypeKeeper typeKeeper : typeKeeperList) { if (Objects.nonNull(typeKeeper.getTypeId()) && typeKeeper.getTypeId().equals(maTypeVo.getTypeId())) { - maTypeVo.setKeeperUserId(typeKeeper.getUserId()); - maTypeVo.setKeeperUserName(typeKeeper.getUserName()); + if(userId !=null){ + Long keeperId = typeKeeper.getUserId(); + if (keeperId.equals(userId)){ + maTypeVo.setKeeperUserId(typeKeeper.getUserId()); + maTypeVo.setKeeperUserName(typeKeeper.getUserName()); + } + }else{ + maTypeVo.setKeeperUserId(typeKeeper.getUserId()); + maTypeVo.setKeeperUserName(typeKeeper.getUserName()); + } + } } } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java index bb659ca1..57298161 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/PurchaseCheckInfo.java @@ -42,10 +42,10 @@ public class PurchaseCheckInfo extends BaseEntity { private String code; /** 采购日期 */ -// @Excel(name = "采购日期", sort = 1) -// @ApiModelProperty(value = "采购日期") -// @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") -// private Date purchaseTime; + @Excel(name = "采购日期", sort = 1) + @ApiModelProperty(value = "采购日期") + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") + private Date purchaseTime; /** 到货日期 */ @ApiModelProperty(value = "到货日期") diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/vo/PurchaseVerifyVo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/vo/PurchaseVerifyVo.java index 9802a1c2..5de745c5 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/vo/PurchaseVerifyVo.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/purchase/domain/vo/PurchaseVerifyVo.java @@ -14,6 +14,7 @@ public class PurchaseVerifyVo { @ApiModelProperty(value = "验收是否通过") private Boolean verifyPass; + /** 验收结论 */ //@Excel(name = "验收结论") @ApiModelProperty(value = "验收结论") diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmUnitPersonMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmUnitPersonMapper.xml index 333994fa..e81bce61 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmUnitPersonMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmUnitPersonMapper.xml @@ -20,8 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - delete from bm_unit_person where unit_id = #{unitId} + + delete from bm_unit_person where unit_id = #{unitId} AND user_id = #{userId} - \ No newline at end of file + diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeMapper.xml index 642439a1..0872e2fa 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeMapper.xml @@ -152,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by type_id - + @@ -195,9 +204,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and mt2.type_id is not null and mhs.house_id = #{houseId} and mhs.del_flag = 0 + - + insert into ma_type @@ -537,6 +547,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" or m3.type_name like concat('%',#{type.keyword},'%') ) + GROUP BY m.type_id - \ No newline at end of file + + + delete from ma_type_keeper where type_id = #{typeId} + + + + insert into ma_type_keeper(type_id, user_id) values (#{typeId},#{keeperId}) + + + + + delete from ma_type_repair where type_id = #{typeId} + + + + insert into ma_type_repair(type_id, user_id) values (#{typeId},#{repairerId}) + + + +