| | |
| | | import com.matrix.system.hive.pojo.MyBeauticianCount; |
| | | import com.matrix.system.hive.service.*; |
| | | import com.matrix.system.shopXcx.mqTask.MQTaskRouting; |
| | | import com.matrix.system.wechart.templateMsg.UniformMsgParam; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | |
| | | // 设置成功状态 |
| | | projServices.setState(Dictionary.SERVICE_STATU_YYCG); |
| | | projServices.setState(Dictionary.SERVICE_STATU_XPL); |
| | | // 判断当前门店是否有历史美疗师 |
| | | LastestWorkBeatuistaff lastWorkStaff = new LastestWorkBeatuistaff(); |
| | | lastWorkStaff.setShopId(checkProjServices.getShopId()); |
| | |
| | | projServices.setState(Dictionary.SERVICE_STATU_FFJS); |
| | | projServices.setConsumeTime(new Date()); |
| | | int result=sysProjServicesDao.update(projServices); |
| | | achieveNewService.addAchieveByServiceOrder(projServices); |
| | | |
| | | //发送微信公众号提醒 |
| | | JSONObject param=new JSONObject(); |
| | | param.put("companyId",projServices.getCompanyId()); |
| | | param.put("serviceId",projServices.getId()); |
| | | rabiitMqTemplate.sendMsg(MQTaskRouting.SEND_UNIFORM_TEMPLATE_MSG+evn,param.toJSONString()); |
| | | UniformMsgParam uniformMsgParam=new UniformMsgParam(projServices.getCompanyId(),UniformMsgParam.GZH_FWWC); |
| | | uniformMsgParam.put("serviceId",projServices.getId()); |
| | | rabiitMqTemplate.sendMsg(MQTaskRouting.SEND_UNIFORM_TEMPLATE_MSG+evn,uniformMsgParam.toJSONString()); |
| | | |
| | | return result; |
| | | } |
| | | } |