kangwei: 招采相关修改需求及问题
正在显示
8 个修改的文件
包含
33 行增加
和
23 行删除
... | @@ -66,6 +66,9 @@ public class ErpSettlementController { | ... | @@ -66,6 +66,9 @@ public class ErpSettlementController { |
66 | } | 66 | } |
67 | //结算类型 | 67 | //结算类型 |
68 | queryWrapper.eq("settlement_type" ,erpSettlement.getSettlementType()) ; | 68 | queryWrapper.eq("settlement_type" ,erpSettlement.getSettlementType()) ; |
69 | |||
70 | //根据角色限制列表 | ||
71 | |||
69 | /*String startDate = req.getParameter("startDate"); | 72 | /*String startDate = req.getParameter("startDate"); |
70 | if(StringUtils.isNotEmpty(startDate)){ | 73 | if(StringUtils.isNotEmpty(startDate)){ |
71 | startDate = startDate+" 00:00:00"; | 74 | startDate = startDate+" 00:00:00"; |
... | @@ -273,12 +276,12 @@ public class ErpSettlementController { | ... | @@ -273,12 +276,12 @@ public class ErpSettlementController { |
273 | @AutoLog(value = "药剂结算单详情-验收审批") | 276 | @AutoLog(value = "药剂结算单详情-验收审批") |
274 | @ApiOperation(value="药剂结算单详情-验收审批", notes="药剂结算单详情-验收审批") | 277 | @ApiOperation(value="药剂结算单详情-验收审批", notes="药剂结算单详情-验收审批") |
275 | @GetMapping(value = "/auditAccept") | 278 | @GetMapping(value = "/auditAccept") |
276 | public Result<?> auditAccept(@RequestParam(name="id",required=true) String id,Integer auditStatus ,String approveMessage ) { | 279 | public Result<?> auditAccept(@RequestParam(name="id",required=true) String id ) { |
277 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); | 280 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); |
278 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); | 281 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); |
279 | erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); | 282 | erpSettlementEntity.setInspectTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); |
280 | erpSettlementEntity.setAuditStatus(auditStatus); | 283 | erpSettlementEntity.setAuditStatus(2); |
281 | erpSettlementEntity.setApproveMessage(approveMessage); | 284 | //erpSettlementEntity.setApproveMessage(approveMessage); |
282 | erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName()); | 285 | erpSettlementEntity.setInspectorSign(BaseContextHandler.getUserName()); |
283 | if(erpSettlementEntity==null) { | 286 | if(erpSettlementEntity==null) { |
284 | result.error500("未找到对应实体"); | 287 | result.error500("未找到对应实体"); |
... | @@ -294,13 +297,13 @@ public class ErpSettlementController { | ... | @@ -294,13 +297,13 @@ public class ErpSettlementController { |
294 | @AutoLog(value = "药剂结算单详情-经理审批") | 297 | @AutoLog(value = "药剂结算单详情-经理审批") |
295 | @ApiOperation(value="药剂结算单详情-经理审批", notes="药剂结算单详情-经理审批") | 298 | @ApiOperation(value="药剂结算单详情-经理审批", notes="药剂结算单详情-经理审批") |
296 | @GetMapping(value = "/auditManager") | 299 | @GetMapping(value = "/auditManager") |
297 | public Result<?> auditManager(@RequestParam(name="id",required=true) String id,Integer auditStatus ,String approveMessage ) { | 300 | public Result<?> auditManager(@RequestParam(name="id",required=true) String id ) { |
298 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); | 301 | Result<ErpSettlementVO> result = new Result<ErpSettlementVO>(); |
299 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); | 302 | ErpSettlement erpSettlementEntity = erpSettlementService.getById(id); |
300 | erpSettlementEntity.setApproveTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); | 303 | erpSettlementEntity.setApproveTime(DateUtils.format(new Date(), HolidaysUtils.DATE_TIME_PATTERN)); |
301 | erpSettlementEntity.setApproverSign(BaseContextHandler.getUserName()); | 304 | erpSettlementEntity.setApproverSign(BaseContextHandler.getUserName()); |
302 | erpSettlementEntity.setAuditStatus(auditStatus); | 305 | erpSettlementEntity.setAuditStatus(3); |
303 | erpSettlementEntity.setApproveMessage(approveMessage); | 306 | //erpSettlementEntity.setApproveMessage(approveMessage); |
304 | if(erpSettlementEntity==null) { | 307 | if(erpSettlementEntity==null) { |
305 | result.error500("未找到对应实体"); | 308 | result.error500("未找到对应实体"); |
306 | }else { | 309 | }else { | ... | ... |
... | @@ -7,6 +7,7 @@ import com.skua.core.context.SpringContextUtils; | ... | @@ -7,6 +7,7 @@ import com.skua.core.context.SpringContextUtils; |
7 | import com.skua.core.query.QueryGenerator; | 7 | import com.skua.core.query.QueryGenerator; |
8 | import com.skua.modules.erp.entity.MaterialIN; | 8 | import com.skua.modules.erp.entity.MaterialIN; |
9 | import com.skua.modules.erp.vo.PurchaseAnalysisVO; | 9 | import com.skua.modules.erp.vo.PurchaseAnalysisVO; |
10 | import com.skua.tool.util.DateUtils; | ||
10 | import io.swagger.annotations.Api; | 11 | import io.swagger.annotations.Api; |
11 | import io.swagger.annotations.ApiOperation; | 12 | import io.swagger.annotations.ApiOperation; |
12 | import lombok.extern.slf4j.Slf4j; | 13 | import lombok.extern.slf4j.Slf4j; |
... | @@ -31,11 +32,14 @@ public class PurchaseAnalysisController { | ... | @@ -31,11 +32,14 @@ public class PurchaseAnalysisController { |
31 | public Result<PurchaseAnalysisVO> settlementList(String startDate,String endDate) { | 32 | public Result<PurchaseAnalysisVO> settlementList(String startDate,String endDate) { |
32 | Result<PurchaseAnalysisVO> result = new Result<PurchaseAnalysisVO>(); | 33 | Result<PurchaseAnalysisVO> result = new Result<PurchaseAnalysisVO>(); |
33 | 34 | ||
35 | int year = DateUtils.getDateYear(startDate); | ||
36 | startDate = year+"-01-01"; | ||
37 | endDate = year+"-12-31"; | ||
34 | String drugStorage = getJdbcTemplate().queryForObject("select round(ifnull(sum(material_num),0),2) from erp_material_in where audit_status = '3' and arrive_time >='"+startDate+"' and arrive_time <= '"+endDate+"'",String.class); | 38 | String drugStorage = getJdbcTemplate().queryForObject("select round(ifnull(sum(material_num),0),2) from erp_material_in where audit_status = '3' and arrive_time >='"+startDate+"' and arrive_time <= '"+endDate+"'",String.class); |
35 | String purchaseMoney = getJdbcTemplate().queryForObject("select round(ifnull(sum(purchase_money),0),2) from erp_purchase_contract where use_flag = 0 and status = 3 and project_time >='"+startDate+"' and project_time <= '"+endDate+"'",String.class); | 39 | String purchaseMoney = getJdbcTemplate().queryForObject("select round(ifnull(sum(purchase_money),0),2) from erp_purchase_contract where use_flag = 0 and status = 3 and project_time >='"+startDate+"' and project_time <= '"+endDate+"'",String.class); |
36 | String distributMoney = getJdbcTemplate().queryForObject("select round(ifnull(sum(distribut_money),0),2) from erp_distribut_contract where status = 3 and purchase_time >='"+startDate+"' and purchase_time <= '"+endDate+"' ",String.class); | 40 | String distributMoney = getJdbcTemplate().queryForObject("select round(ifnull(sum(distribut_money),0),2) from erp_distribut_contract where purchase_time >='"+startDate+"' and purchase_time <= '"+endDate+"' ",String.class); |
37 | String supplierMoneyByJs = getJdbcTemplate().queryForObject("select round(ifnull(sum(t.total_price_tax),0),2) from erp_settlement t where t.settlement_type = '0' and t.status = '1' and settlement_time >='"+startDate+"' and settlement_time<='"+endDate+"' ",String.class); | 41 | String supplierMoneyByJs = getJdbcTemplate().queryForObject("select round(ifnull(sum(t.total_price_tax),0),2) from erp_settlement t where t.settlement_type = '0' and settlement_time >='"+startDate+"' and settlement_time<='"+endDate+"' ",String.class); |
38 | String waterDepartMoneyByJs = getJdbcTemplate().queryForObject("select round(ifnull(sum(t.total_price_tax),0),2) from erp_settlement t where t.settlement_type = '1' and t.status = '1' and settlement_time >='"+startDate+"' and settlement_time<='"+endDate+"' ",String.class); | 42 | String waterDepartMoneyByJs = getJdbcTemplate().queryForObject("select round(ifnull(sum(t.total_price_tax),0),2) from erp_settlement t where t.settlement_type = '1' and settlement_time >='"+startDate+"' and settlement_time<='"+endDate+"' ",String.class); |
39 | 43 | ||
40 | PurchaseAnalysisVO purchaseAnalysisVO = new PurchaseAnalysisVO( drugStorage, purchaseMoney, distributMoney, supplierMoneyByJs, waterDepartMoneyByJs); | 44 | PurchaseAnalysisVO purchaseAnalysisVO = new PurchaseAnalysisVO( drugStorage, purchaseMoney, distributMoney, supplierMoneyByJs, waterDepartMoneyByJs); |
41 | result.setSuccess(true); | 45 | result.setSuccess(true); | ... | ... |
... | @@ -62,7 +62,7 @@ public class ErpSettlement { | ... | @@ -62,7 +62,7 @@ public class ErpSettlement { |
62 | private String totalPriceTax; | 62 | private String totalPriceTax; |
63 | /**签字状态(1-申请,2-验收签字,3-经理签字)*/ | 63 | /**签字状态(1-申请,2-验收签字,3-经理签字)*/ |
64 | @Excel(name = "签字状态(1-申请,2-验收签字,3-经理签字)", width = 15) | 64 | @Excel(name = "签字状态(1-申请,2-验收签字,3-经理签字)", width = 15) |
65 | @ApiModelProperty(value = "审批状态(1-申请,2-验收签字,3-经理签字,4 验收驳回,5 经理驳回)") | 65 | @ApiModelProperty(value = "审批状态(1-申请,2-验收签字,3-经理签字,-2 验收驳回,-3 经理驳回)") |
66 | private Integer auditStatus; | 66 | private Integer auditStatus; |
67 | /**结算状态(0 未结算 1 已结算)*/ | 67 | /**结算状态(0 未结算 1 已结算)*/ |
68 | @Excel(name = "结算状态(0 未结算 1 已结算)", width = 15) | 68 | @Excel(name = "结算状态(0 未结算 1 已结算)", width = 15) | ... | ... |
... | @@ -64,6 +64,7 @@ | ... | @@ -64,6 +64,7 @@ |
64 | 64 | ||
65 | <select id="queryById" resultType="com.skua.modules.erp.vo.MaterialINVO"> | 65 | <select id="queryById" resultType="com.skua.modules.erp.vo.MaterialINVO"> |
66 | select d.depart_name 'departName', ss.sparepart_code, st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name',ss.sparepart_name, ss.specification,ss.measuring_unit, | 66 | select d.depart_name 'departName', ss.sparepart_code, st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name',ss.sparepart_name, ss.specification,ss.measuring_unit, |
67 | pm.unit_price 'purchasePrice', | ||
67 | round(pm.unit_price * t.material_num,2) 'purchaseTotalPrice', round(dm.distribut_price * t.material_num,2) 'distributTotalPrice' ,round(dm.distribut_price * t.material_num ,2)'total_price', | 68 | round(pm.unit_price * t.material_num,2) 'purchaseTotalPrice', round(dm.distribut_price * t.material_num,2) 'distributTotalPrice' ,round(dm.distribut_price * t.material_num ,2)'total_price', |
68 | dm.tax_amount,dm.distribut_price,t.distribut_material_id,t.sparepart_type,t.in_warehouse_id, | 69 | dm.tax_amount,dm.distribut_price,t.distribut_material_id,t.sparepart_type,t.in_warehouse_id, |
69 | t.id,t.depart_id,t.project_name,t.in_order,t.purchase_contract_id,t.purchase_contract_code,t.distribut_contract_id,t.distribut_contract_code,t.arrive_time,t.receiver,t.sparepart_id,t.material_num,t.supplier_id,t.good_code,t.share_url,t.confirm_status,t.audit_status,t.approve_message,t.in_type | 70 | t.id,t.depart_id,t.project_name,t.in_order,t.purchase_contract_id,t.purchase_contract_code,t.distribut_contract_id,t.distribut_contract_code,t.arrive_time,t.receiver,t.sparepart_id,t.material_num,t.supplier_id,t.good_code,t.share_url,t.confirm_status,t.audit_status,t.approve_message,t.in_type |
... | @@ -80,6 +81,7 @@ | ... | @@ -80,6 +81,7 @@ |
80 | 81 | ||
81 | <select id="arrivalRecordList" resultType="com.skua.modules.erp.vo.MaterialINVO"> | 82 | <select id="arrivalRecordList" resultType="com.skua.modules.erp.vo.MaterialINVO"> |
82 | select d.depart_name 'departName', ss.sparepart_code, st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name',ss.sparepart_name, ss.specification,ss.measuring_unit, | 83 | select d.depart_name 'departName', ss.sparepart_code, st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name',ss.sparepart_name, ss.specification,ss.measuring_unit, |
84 | pm.unit_price 'purchasePrice', | ||
83 | round(pm.unit_price * t.material_num,2) 'purchaseTotalPrice', round(dm.distribut_price * t.material_num,2) 'distributTotalPrice' ,round(dm.distribut_price * t.material_num ,2)'total_price', | 85 | round(pm.unit_price * t.material_num,2) 'purchaseTotalPrice', round(dm.distribut_price * t.material_num,2) 'distributTotalPrice' ,round(dm.distribut_price * t.material_num ,2)'total_price', |
84 | dm.tax_amount,dm.distribut_price,t.distribut_material_id,t.sparepart_type,t.in_warehouse_id, | 86 | dm.tax_amount,dm.distribut_price,t.distribut_material_id,t.sparepart_type,t.in_warehouse_id, |
85 | t.id,t.depart_id,t.project_name,t.in_order,t.purchase_contract_id,t.purchase_contract_code,t.distribut_contract_id,t.distribut_contract_code,t.arrive_time,t.receiver,t.sparepart_id,t.material_num,t.supplier_id,t.good_code,t.share_url,t.confirm_status,t.audit_status,t.approve_message,t.in_type | 87 | t.id,t.depart_id,t.project_name,t.in_order,t.purchase_contract_id,t.purchase_contract_code,t.distribut_contract_id,t.distribut_contract_code,t.arrive_time,t.receiver,t.sparepart_id,t.material_num,t.supplier_id,t.good_code,t.share_url,t.confirm_status,t.audit_status,t.approve_message,t.in_type | ... | ... |
... | @@ -279,7 +279,7 @@ public class MaterialINServiceImpl extends ServiceImpl<MaterialINMapper, Materia | ... | @@ -279,7 +279,7 @@ public class MaterialINServiceImpl extends ServiceImpl<MaterialINMapper, Materia |
279 | materialIN.setMaterialNum(purchaseMaterialVO.getMaterialNum()); | 279 | materialIN.setMaterialNum(purchaseMaterialVO.getMaterialNum()); |
280 | 280 | ||
281 | materialIN.setSparepartId(purchaseMaterialVO.getSparepartId()); | 281 | materialIN.setSparepartId(purchaseMaterialVO.getSparepartId()); |
282 | 282 | materialIN.setSparepartName(purchaseMaterialVO.getSparepartName()); | |
283 | materialIN.setSparepartType(purchaseMaterialVO.getSparepartType()); | 283 | materialIN.setSparepartType(purchaseMaterialVO.getSparepartType()); |
284 | materialIN.setGoodCode(purchaseMaterialVO.getGoodCode()); | 284 | materialIN.setGoodCode(purchaseMaterialVO.getGoodCode()); |
285 | materialIN.setSupplierId(purchaseMaterialVO.getSupplierId()); | 285 | materialIN.setSupplierId(purchaseMaterialVO.getSupplierId()); | ... | ... |
... | @@ -29,7 +29,7 @@ public class MaterialINArrivalRecordVO { | ... | @@ -29,7 +29,7 @@ public class MaterialINArrivalRecordVO { |
29 | @ApiModelProperty(value = "到货时间") | 29 | @ApiModelProperty(value = "到货时间") |
30 | private String arriveTime; | 30 | private String arriveTime; |
31 | 31 | ||
32 | @Excel(name = "使用单位", width = 15,orderNum = "3",dictTable = "sys_depart", dicCode="id", dicText = "depart_name") | 32 | @Excel(name = "使用单位", width = 25,orderNum = "3",dictTable = "sys_depart", dicCode="id", dicText = "depart_name") |
33 | @ApiModelProperty(value = "所属机构") | 33 | @ApiModelProperty(value = "所属机构") |
34 | @Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name") | 34 | @Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name") |
35 | private String departId; | 35 | private String departId; |
... | @@ -46,7 +46,7 @@ public class MaterialINArrivalRecordVO { | ... | @@ -46,7 +46,7 @@ public class MaterialINArrivalRecordVO { |
46 | @ApiModelProperty(value = "数量") | 46 | @ApiModelProperty(value = "数量") |
47 | private String materialNum; | 47 | private String materialNum; |
48 | 48 | ||
49 | @Excel(name = "供货单位", width = 15,orderNum = "7",dictTable = "ajh_supplier_manage", dicCode="id", dicText = "supp_name") | 49 | @Excel(name = "供货单位", width = 30,orderNum = "7",dictTable = "ajh_supplier_manage", dicCode="id", dicText = "supp_name") |
50 | @ApiModelProperty(value = "供应商编号") | 50 | @ApiModelProperty(value = "供应商编号") |
51 | @Dict(dictTable = "ajh_supplier_manage", dicCode="id", dicText = "supp_name") | 51 | @Dict(dictTable = "ajh_supplier_manage", dicCode="id", dicText = "supp_name") |
52 | private String supplierId; | 52 | private String supplierId; |
... | @@ -63,9 +63,11 @@ public class MaterialINArrivalRecordVO { | ... | @@ -63,9 +63,11 @@ public class MaterialINArrivalRecordVO { |
63 | @Dict(dictTable = "erp_distribut_contract", dicCode="id", dicText = "contract_code") | 63 | @Dict(dictTable = "erp_distribut_contract", dicCode="id", dicText = "contract_code") |
64 | private String distributContractId; | 64 | private String distributContractId; |
65 | /**采购单价*/ | 65 | /**采购单价*/ |
66 | @Excel(name = "采购单价", width = 15,orderNum = "10") | ||
66 | @ApiModelProperty(value = "采购单价") | 67 | @ApiModelProperty(value = "采购单价") |
67 | private String purchasePrice; | 68 | private String purchasePrice; |
68 | /**分销单价*/ | 69 | /**分销单价*/ |
70 | @Excel(name = "分销单价", width = 15,orderNum = "10") | ||
69 | @ApiModelProperty(value = "分销单价") | 71 | @ApiModelProperty(value = "分销单价") |
70 | private String distributPrice; | 72 | private String distributPrice; |
71 | /**采购总价*/ | 73 | /**采购总价*/ | ... | ... |
... | @@ -67,6 +67,7 @@ public class MaterialINVO extends MaterialIN { | ... | @@ -67,6 +67,7 @@ public class MaterialINVO extends MaterialIN { |
67 | /**采购总价*/ | 67 | /**采购总价*/ |
68 | @TableField(exist = false) | 68 | @TableField(exist = false) |
69 | @ApiModelProperty(value = "采购总价") | 69 | @ApiModelProperty(value = "采购总价") |
70 | @Excel(name = "采购总价", width = 15) | ||
70 | private String purchaseTotalPrice; | 71 | private String purchaseTotalPrice; |
71 | /**价税合计*/ | 72 | /**价税合计*/ |
72 | @TableField(exist = false) | 73 | @TableField(exist = false) |
... | @@ -77,14 +78,6 @@ public class MaterialINVO extends MaterialIN { | ... | @@ -77,14 +78,6 @@ public class MaterialINVO extends MaterialIN { |
77 | private List<PurchaseMaterialVO> materiaList; | 78 | private List<PurchaseMaterialVO> materiaList; |
78 | 79 | ||
79 | 80 | ||
80 | public String getPurchaseTotalPrice() { | ||
81 | if(StringUtils.isNotEmpty(this.getPurchasePrice()) && StringUtils.isNotEmpty(this.getMaterialNum())){ | ||
82 | purchaseTotalPrice = JSUtils.multiply(purchasePrice ,this.getMaterialNum()) ; | ||
83 | } | ||
84 | return purchaseTotalPrice; | ||
85 | } | ||
86 | |||
87 | |||
88 | public String getTotalPriceTax() { | 81 | public String getTotalPriceTax() { |
89 | //不含税总价 = 含税总价 / (1 + 税率) | 82 | //不含税总价 = 含税总价 / (1 + 税率) |
90 | if(StringUtils.isNotEmpty(this.getTaxAmount()) && StringUtils.isNotEmpty(this.getDistributPrice()) && StringUtils.isNotEmpty(this.getMaterialNum())){ | 83 | if(StringUtils.isNotEmpty(this.getTaxAmount()) && StringUtils.isNotEmpty(this.getDistributPrice()) && StringUtils.isNotEmpty(this.getMaterialNum())){ | ... | ... |
... | @@ -27,9 +27,11 @@ public class SmsService { | ... | @@ -27,9 +27,11 @@ public class SmsService { |
27 | public void pushMsgNoProcessByRoleId(String messageTitle ,String messageBody ,String roleId,String forwardTag,String msgCategory){ | 27 | public void pushMsgNoProcessByRoleId(String messageTitle ,String messageBody ,String roleId,String forwardTag,String msgCategory){ |
28 | if(StringUtils.isNotEmpty(roleId)){ | 28 | if(StringUtils.isNotEmpty(roleId)){ |
29 | List<SysUser> sysUserList = userService.queryUserByRoleId(roleId); | 29 | List<SysUser> sysUserList = userService.queryUserByRoleId(roleId); |
30 | if(sysUserList != null && !sysUserList.isEmpty()){ | ||
30 | pushMessage(sysUserList,messageTitle , messageBody , forwardTag,msgCategory); | 31 | pushMessage(sysUserList,messageTitle , messageBody , forwardTag,msgCategory); |
31 | } | 32 | } |
32 | } | 33 | } |
34 | } | ||
33 | 35 | ||
34 | /*** | 36 | /*** |
35 | * 信息推送:包含手机,web推送 | 37 | * 信息推送:包含手机,web推送 |
... | @@ -73,6 +75,7 @@ public class SmsService { | ... | @@ -73,6 +75,7 @@ public class SmsService { |
73 | public void appPushMsgNoProcess(String messageTitle ,String messageBody ,String userIds,String forwardTag){ | 75 | public void appPushMsgNoProcess(String messageTitle ,String messageBody ,String userIds,String forwardTag){ |
74 | if(StringUtils.isNotEmpty(userIds)){ | 76 | if(StringUtils.isNotEmpty(userIds)){ |
75 | List<SysUser> sysUserList = userService.getUserByUserIds(userIds); | 77 | List<SysUser> sysUserList = userService.getUserByUserIds(userIds); |
78 | if(sysUserList != null && !sysUserList.isEmpty()){ | ||
76 | List<String> userCidList = sysUserList.stream().map(SysUser::getCid).filter(v -> StringUtils.isNotBlank(v)).collect(Collectors.toList()); | 79 | List<String> userCidList = sysUserList.stream().map(SysUser::getCid).filter(v -> StringUtils.isNotBlank(v)).collect(Collectors.toList()); |
77 | 80 | ||
78 | MessageEntity messageEntity = new MessageEntity(); | 81 | MessageEntity messageEntity = new MessageEntity(); |
... | @@ -86,6 +89,7 @@ public class SmsService { | ... | @@ -86,6 +89,7 @@ public class SmsService { |
86 | appPushService.pushMessage(messageEntity); | 89 | appPushService.pushMessage(messageEntity); |
87 | } | 90 | } |
88 | } | 91 | } |
92 | } | ||
89 | 93 | ||
90 | /*** | 94 | /*** |
91 | * web推送 | 95 | * web推送 |
... | @@ -97,9 +101,9 @@ public class SmsService { | ... | @@ -97,9 +101,9 @@ public class SmsService { |
97 | public void webPushMsgNoProcess(String messageTitle ,String messageBody ,String userIds,String forwardTag,String msgCategory){ | 101 | public void webPushMsgNoProcess(String messageTitle ,String messageBody ,String userIds,String forwardTag,String msgCategory){ |
98 | if(StringUtils.isNotEmpty(userIds)){ | 102 | if(StringUtils.isNotEmpty(userIds)){ |
99 | List<SysUser> sysUserList = userService.getUserByUserIds(userIds); | 103 | List<SysUser> sysUserList = userService.getUserByUserIds(userIds); |
100 | List<String> userCidList = sysUserList.stream().map(SysUser::getCid).filter(v -> StringUtils.isNotBlank(v)).collect(Collectors.toList()); | 104 | //List<String> userCidList = sysUserList.stream().map(SysUser::getCid).filter(v -> StringUtils.isNotBlank(v)).collect(Collectors.toList()); |
105 | if(sysUserList != null && !sysUserList.isEmpty()){ | ||
101 | List<String> userIdList = sysUserList.stream().map(SysUser::getId).collect(Collectors.toList()); | 106 | List<String> userIdList = sysUserList.stream().map(SysUser::getId).collect(Collectors.toList()); |
102 | |||
103 | MessageEntity messageEntity = new MessageEntity(); | 107 | MessageEntity messageEntity = new MessageEntity(); |
104 | messageEntity.setMessageTitle(messageTitle); | 108 | messageEntity.setMessageTitle(messageTitle); |
105 | messageEntity.setMessageBody(messageBody); | 109 | messageEntity.setMessageBody(messageBody); |
... | @@ -109,5 +113,7 @@ public class SmsService { | ... | @@ -109,5 +113,7 @@ public class SmsService { |
109 | 113 | ||
110 | webNoticePushServiceExt.pushMessage(messageEntity,msgCategory); | 114 | webNoticePushServiceExt.pushMessage(messageEntity,msgCategory); |
111 | } | 115 | } |
116 | |||
117 | } | ||
112 | } | 118 | } |
113 | } | 119 | } | ... | ... |
-
请 注册 或 登录 后发表评论