|
|
|
@ -1321,14 +1321,10 @@ public class CtqyyClient extends CommonHttpClient {
|
|
|
|
|
// code = code.replace("\u001D", "zysoft"); 智业无法识别GS1符号
|
|
|
|
|
code = code.replace("\u001D", "");
|
|
|
|
|
}
|
|
|
|
|
if (!code.startsWith("MA")) {
|
|
|
|
|
code = code.replace(codeDetaiEntity.getNameCode(), "");
|
|
|
|
|
code = code.substring(1, code.length() - 1);
|
|
|
|
|
if (!code.startsWith("MA") && StrUtil.isNotEmpty(code) && code.length() > 16) {
|
|
|
|
|
itemDTO.setNameCode(StrUtil.sub(code, 2, 16));
|
|
|
|
|
itemDTO.setCode(StrUtil.sub(code, 16, code.length()));
|
|
|
|
|
}
|
|
|
|
|
itemDTO.setCode(code);
|
|
|
|
|
if (StrUtil.isNotEmpty(code) && code.length() > 16)
|
|
|
|
|
itemDTO.setNameCode(code.substring(0, 16));
|
|
|
|
|
|
|
|
|
|
if (IntUtil.value(codeDetaiEntity.getCount()) > 1) {
|
|
|
|
|
for (int i = 0; i < codeDetaiEntity.getCount(); i++) {
|
|
|
|
|
itemDTO.setCount(1);
|
|
|
|
|