| | |
| | | import org.apache.http.util.EntityUtils; |
| | | import org.apache.log4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | public class InterfaceServiceImpl implements InterfaceService { |
| | | |
| | | private static Logger logger = Logger.getLogger(ApiAction.class); |
| | | |
| | | @Lazy |
| | | @Resource |
| | | private OpeUseFlowService opeUseFlowService; |
| | | @Resource |
| | |
| | | } |
| | | List<String> projects = sysLaboratoryContainer.selectProjectsByContainerCode(containerCode); |
| | | List<SysUser> userList = null; |
| | | if (projects != null) { |
| | | if (projects != null && projects.size() > 0){ |
| | | userList = new ArrayList<>(); |
| | | for (String project : projects) { |
| | | List<SysUser> dataList = sysUserDao.getUserListByProject(project, startTime, endTime); |
| | |
| | | logger.error("The containerCode has not been exists!"); |
| | | continue; |
| | | } |
| | | } else if (status.equals(2)){ |
| | | } |
| | | else if (status.equals(2)){ |
| | | /*SysWarehouseContainer container = sysWarehouseContainerDao |
| | | .getSysWarehouseContainerByContainerCode(containerCode); |
| | | if (Objects.isNull(container) == false) { |
| | |
| | | if (status.equals(-1)){ |
| | | continue; |
| | | } |
| | | opeReagentStatusDao.syncOpeReagentStatus(params); |
| | | |
| | | int i = opeReagentStatusDao.syncOpeReagentStatus(params); |
| | | if (i < 1){ |
| | | opeReagentStatusDao.syncOpeReagentStatus(params); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | } |
| | | sysAlarmPersonDao.insertSysAlarmPerson(sysAlarmPerson); |
| | | // 将人员扣分更新到人员表 |
| | | if (warningPoint == null) { |
| | | warningPoint = 0; |
| | | } |
| | | // SysUser user = sysUserDao.getSysUser(userId); |
| | | if (user != null) { |
| | | sysUserDao.updateUserPointBySelective(user.getPoint() - warningPoint, user.getId()); |
| | | } |
| | | } |
| | | // 将人员扣分更新到人员表 |
| | | if (warningPoint == null) { |
| | | warningPoint = 0; |
| | | } |
| | | // SysUser user = sysUserDao.getSysUser(userId); |
| | | if (user != null) { |
| | | sysUserDao.updateUserPointBySelective(user.getPoint() - warningPoint, user.getId()); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | continue; |
| | | } |
| | | } |
| | | int count = opeUseFlowService.getOpeUseFlow(opeUseFlow); |
| | | if (count < 1) { |
| | | |
| | | this.opeUseFlowService.insertOpeUseFlow(opeUseFlow); |
| | | this.opeUseFlowService.insertOpeUseFlow(opeUseFlow); |
| | | } |
| | | } |
| | | } |
| | | |