| | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import javax.transaction.Transactional; |
| | | |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | | import com.ld.igds.inout.dto.InoutParam; |
| | |
| | | data.setUpdateTime(new Date()); |
| | | data.setUpdateUser(ContextUtil.getLoginUserCName()); |
| | | |
| | | InoutData inoutData = inoutService.getLastRecord(ContextUtil.getCompanyId(), data.getDepotId()); |
| | | |
| | | InoutParam param = new InoutParam(); |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | param.setDepotId(data.getDepotId()); |
| | | param.setProgress(InoutConstant.PROGRESS_RECORD); |
| | | |
| | | InoutData inoutData = inoutService.getLastRecord(param); |
| | | |
| | | if (null != inoutData && null != inoutData.getCompleteTime() && |
| | | data.getSubmitTime().before(inoutData.getCompleteTime())) { |