| | |
| | | code = StringUtils.leftPad(String.valueOf(Integer.valueOf(code)+1),7, "0");;//序列号 |
| | | result = mfCode+proTypeCode+batteryTypeCode+specificationsCode+traceInfoCode+proDateCode+code; |
| | | |
| | | log.info("读取到电芯码为:{},1P1S码为:{}",sfcCode,result); |
| | | |
| | | //更新日期和序列号 |
| | | LambdaUpdateWrapper<DaPsConf> lambdaUpdateWrapper = new LambdaUpdateWrapper<DaPsConf>(); |
| | | lambdaUpdateWrapper.set(DaPsConf::getProDateCode,proDateCode);//生产日期 |
| | |
| | | }catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | public static void main(String[] args) throws Exception { |
| | | get1P1S(""); |
| | | } |
| | | |
| | | } |