kangwei: 解决药剂结算、权限问题
正在显示
6 个修改的文件
包含
31 行增加
和
2 行删除
... | @@ -5,6 +5,7 @@ import java.util.List; | ... | @@ -5,6 +5,7 @@ import java.util.List; |
5 | import com.skua.modules.erp.entity.ErpSettlementItem; | 5 | import com.skua.modules.erp.entity.ErpSettlementItem; |
6 | import com.skua.modules.erp.vo.ErpSettlementItemVO; | 6 | import com.skua.modules.erp.vo.ErpSettlementItemVO; |
7 | import com.skua.modules.erp.vo.ErpSettlementVO; | 7 | import com.skua.modules.erp.vo.ErpSettlementVO; |
8 | import com.skua.tool.annotation.Anonymous; | ||
8 | import org.apache.ibatis.annotations.Param; | 9 | import org.apache.ibatis.annotations.Param; |
9 | import com.skua.modules.erp.entity.ErpSettlement; | 10 | import com.skua.modules.erp.entity.ErpSettlement; |
10 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 11 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
... | @@ -19,9 +20,11 @@ public interface ErpSettlementMapper extends BaseMapper<ErpSettlement> { | ... | @@ -19,9 +20,11 @@ public interface ErpSettlementMapper extends BaseMapper<ErpSettlement> { |
19 | List<ErpSettlementVO> checkSettlementByWaterDepart(@Param("ids")String ids); | 20 | List<ErpSettlementVO> checkSettlementByWaterDepart(@Param("ids")String ids); |
20 | 21 | ||
21 | // 根据入库单ids,获取【供应商】结算单详情 | 22 | // 根据入库单ids,获取【供应商】结算单详情 |
23 | @Anonymous | ||
22 | List<ErpSettlementItemVO> querySupplierSettlementByMaterialIds(@Param("ids") String materialIds); | 24 | List<ErpSettlementItemVO> querySupplierSettlementByMaterialIds(@Param("ids") String materialIds); |
23 | 25 | ||
24 | // 根据入库单ids,获取【水厂】结算单详情 | 26 | // 根据入库单ids,获取【水厂】结算单详情 |
27 | @Anonymous | ||
25 | List<ErpSettlementItemVO> queryWaterDepartSettlementByMaterialIds(@Param("ids") String materialIds); | 28 | List<ErpSettlementItemVO> queryWaterDepartSettlementByMaterialIds(@Param("ids") String materialIds); |
26 | //(供应商)送货单以及物资验收单 | 29 | //(供应商)送货单以及物资验收单 |
27 | /// List<ErpSettlementItemVO> querySupplierSettlementFormById(@Param("id")String id); | 30 | /// List<ErpSettlementItemVO> querySupplierSettlementFormById(@Param("id")String id); | ... | ... |
... | @@ -266,7 +266,7 @@ public class EquipmentSparepartSuppliesController { | ... | @@ -266,7 +266,7 @@ public class EquipmentSparepartSuppliesController { |
266 | if (equipmentSparepartSuppliesEntity == null) { | 266 | if (equipmentSparepartSuppliesEntity == null) { |
267 | result.error500("未找到对应实体"); | 267 | result.error500("未找到对应实体"); |
268 | } else { | 268 | } else { |
269 | boolean ok = equipmentSparepartSuppliesService.updateById(equipmentSparepartSupplies); | 269 | boolean ok = equipmentSparepartSuppliesService.updateEquipmentSparepartSupplies(equipmentSparepartSupplies); |
270 | //TODO 返回false说明什么? | 270 | //TODO 返回false说明什么? |
271 | if (ok) { | 271 | if (ok) { |
272 | result.success("修改成功!"); | 272 | result.success("修改成功!"); | ... | ... |
... | @@ -20,4 +20,10 @@ public interface EquipmentSparepartSuppliesMapper extends BaseMapper<EquipmentSp | ... | @@ -20,4 +20,10 @@ public interface EquipmentSparepartSuppliesMapper extends BaseMapper<EquipmentSp |
20 | */ | 20 | */ |
21 | public IPage<EquipmentSparepartSupplies> selectPageByOut(Page<EquipmentSparepartSupplies> page,@Param("sparepartName")String sparepartName, | 21 | public IPage<EquipmentSparepartSupplies> selectPageByOut(Page<EquipmentSparepartSupplies> page,@Param("sparepartName")String sparepartName, |
22 | @Param("sparepartType")String sparepartType ,@Param("sparepartCode")String sparepartCode, @Param("applyYear")Integer applyYear); | 22 | @Param("sparepartType")String sparepartType ,@Param("sparepartCode")String sparepartCode, @Param("applyYear")Integer applyYear); |
23 | |||
24 | /*** | ||
25 | * 级联修改备品备件表 | ||
26 | * @param equipmentSparepartSupplies | ||
27 | */ | ||
28 | public void updateEquipmentSparepart(EquipmentSparepartSupplies equipmentSparepartSupplies); | ||
23 | } | 29 | } | ... | ... |
... | @@ -24,4 +24,11 @@ | ... | @@ -24,4 +24,11 @@ |
24 | </if> | 24 | </if> |
25 | </where> | 25 | </where> |
26 | </select> | 26 | </select> |
27 | |||
28 | <update id="updateEquipmentSparepart"> | ||
29 | update equipment_sparepart set sparepart_code = #{sparepartCode},sparepart_name=#{sparepartName},sparepart_type=#{sparepartType},sparepart_img =#{sparepartImg},specification =#{specification},measuring_unit =#{measuringUnit}, | ||
30 | sparepart_attribute=#{sparepartAttribute} | ||
31 | where supplies_id = #{id} | ||
32 | |||
33 | </update> | ||
27 | </mapper> | 34 | </mapper> | ... | ... |
... | @@ -12,8 +12,10 @@ public interface IEquipmentSparepartSuppliesService extends IService<EquipmentSp | ... | @@ -12,8 +12,10 @@ public interface IEquipmentSparepartSuppliesService extends IService<EquipmentSp |
12 | /*** | 12 | /*** |
13 | * 物料列表+去年出库 | 13 | * 物料列表+去年出库 |
14 | * @param page | 14 | * @param page |
15 | * @param depId | 15 | * @param |
16 | * @return | 16 | * @return |
17 | */ | 17 | */ |
18 | public IPage<EquipmentSparepartSupplies> queryPageByOut(Page<EquipmentSparepartSupplies> page, String sparepartName,String sparepartType ,String sparepartCode ,Integer applyYear); | 18 | public IPage<EquipmentSparepartSupplies> queryPageByOut(Page<EquipmentSparepartSupplies> page, String sparepartName,String sparepartType ,String sparepartCode ,Integer applyYear); |
19 | |||
20 | boolean updateEquipmentSparepartSupplies(EquipmentSparepartSupplies equipmentSparepartSupplies); | ||
19 | } | 21 | } | ... | ... |
... | @@ -8,12 +8,15 @@ import com.skua.modules.supplies.service.IEquipmentSparepartSuppliesService; | ... | @@ -8,12 +8,15 @@ import com.skua.modules.supplies.service.IEquipmentSparepartSuppliesService; |
8 | import org.springframework.stereotype.Service; | 8 | import org.springframework.stereotype.Service; |
9 | 9 | ||
10 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 10 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
11 | import org.springframework.transaction.annotation.Transactional; | ||
11 | 12 | ||
12 | /** | 13 | /** |
13 | * 物料信息表 | 14 | * 物料信息表 |
14 | */ | 15 | */ |
15 | @Service | 16 | @Service |
16 | public class EquipmentSparepartSuppliesServiceImpl extends ServiceImpl<EquipmentSparepartSuppliesMapper, EquipmentSparepartSupplies> implements IEquipmentSparepartSuppliesService { | 17 | public class EquipmentSparepartSuppliesServiceImpl extends ServiceImpl<EquipmentSparepartSuppliesMapper, EquipmentSparepartSupplies> implements IEquipmentSparepartSuppliesService { |
18 | |||
19 | |||
17 | /*** | 20 | /*** |
18 | * 物料列表+去年出库 | 21 | * 物料列表+去年出库 |
19 | * @param page | 22 | * @param page |
... | @@ -23,4 +26,12 @@ public class EquipmentSparepartSuppliesServiceImpl extends ServiceImpl<Equipment | ... | @@ -23,4 +26,12 @@ public class EquipmentSparepartSuppliesServiceImpl extends ServiceImpl<Equipment |
23 | public IPage<EquipmentSparepartSupplies> queryPageByOut(Page<EquipmentSparepartSupplies> page ,String sparepartName,String sparepartType ,String sparepartCode,Integer applyYear){ | 26 | public IPage<EquipmentSparepartSupplies> queryPageByOut(Page<EquipmentSparepartSupplies> page ,String sparepartName,String sparepartType ,String sparepartCode,Integer applyYear){ |
24 | return baseMapper.selectPageByOut(page ,sparepartName,sparepartType,sparepartCode,applyYear); | 27 | return baseMapper.selectPageByOut(page ,sparepartName,sparepartType,sparepartCode,applyYear); |
25 | } | 28 | } |
29 | |||
30 | @Transactional | ||
31 | public boolean updateEquipmentSparepartSupplies(EquipmentSparepartSupplies equipmentSparepartSupplies){ | ||
32 | this.baseMapper.updateById(equipmentSparepartSupplies); | ||
33 | //级联修改备品备件表 | ||
34 | this.baseMapper.updateEquipmentSparepart(equipmentSparepartSupplies); | ||
35 | return true; | ||
36 | } | ||
26 | } | 37 | } | ... | ... |
-
请 注册 或 登录 后发表评论