| | |
| | | if(station.getWrkNo()!=null && station.getWrkNo()>0) { |
| | | throw new CoolException(devpNo+"站点已有工作号"); |
| | | } |
| | | if(!station.getInEnable().equals("Y")) { |
| | | throw new CoolException(devpNo+"站点不是可入状态"); |
| | | } |
| | | if(wrkMastService.getWorkingMast(devpNo)>0){ |
| | | throw new CoolException(devpNo+"站点不能同时生成两笔入库工作档"); |
| | | } |
| | |
| | | |
| | | // 生成激活码 |
| | | public static void main(String[] args) { |
| | | String timeStr = "2020-08-01 17:48:35"; |
| | | String timeStr = "2021-08-01 17:48:35"; |
| | | Date exprTime = DateUtils.convert(timeStr); |
| | | String code = AesUtils.encrypt(DateUtils.convert(exprTime, DateUtils.yyyyMMddHHmmss), SystemProperties.SALT); |
| | | System.out.println("激活码:"+code); |