| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | } |
| | | // 设置项目总时长 |
| | | sysProjServices.setTotalTime(totalTime); |
| | | sysProjServices.setMoney(hkPrice); |
| | | sysProjServices.setMoney(new BigDecimal(hkPrice).setScale(2, BigDecimal.ROUND_HALF_DOWN).doubleValue()); |
| | | sysProjServicesDao.update(sysProjServices); |
| | | return sysProjServices; |
| | | } |
| | |
| | | if (skipServiceOrderStep(Dictionary.SERVICE_OVER_BEGIN_END)) { |
| | | projServices.setStartTime(new Date()); |
| | | projServices.setState(Dictionary.SERVICE_STATU_FWWC); |
| | | } else { |
| | | projServices.setState(Dictionary.SERVICE_STATU_PLWC); |
| | | } |
| | | // 释放床位资源 |
| | | // SysBedState checkBedState = sysBedStateDao.selectBySerIdAndBedId(projServices.getBedId(), projServices.getId()); |
| | |
| | | /** |
| | | * 跳过服务单某步骤 |
| | | */ |
| | | private boolean skipServiceOrderStep(String step) { |
| | | @Override |
| | | public boolean skipServiceOrderStep(String step) { |
| | | SysUsers users = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); |
| | | ParameterSettings ps = new ParameterSettings(); |
| | | ps.setCompanyId(users.getCompanyId()); |