|
|
|
@ -138,8 +138,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String batchSign(String costomsInfo, UserInfo userInfo) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(userInfo.getDbName(), "business") + DbConstant.BUSINESS_READ); |
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(costomsInfo); |
|
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray("ids"); |
|
|
|
|
String businessCode = jsonObject.getString("businessCode"); |
|
|
|
@ -317,15 +315,9 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
customs.setQsDate(DateUtils.getSqlDateLong()); |
|
|
|
|
customs.setQsType(QsfsEnum.DRQS.getQsfsDm()); |
|
|
|
|
if (tDxCustoms == null) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(ObjectUtil.fixNull(userInfo.getDbName()), "business") |
|
|
|
|
+ DbConstant.BUSINESS_WRITE); |
|
|
|
|
customsService.save(customs); |
|
|
|
|
} else { |
|
|
|
|
customs.setId(tDxCustoms.getId()); |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(ObjectUtil.fixNull(userInfo.getDbName()), "business") |
|
|
|
|
+ DbConstant.BUSINESS_WRITE); |
|
|
|
|
customsService.updateById(customs); |
|
|
|
|
} |
|
|
|
|
signToVO(customs, param, true); |
|
|
|
@ -579,8 +571,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String cancelSign(List<String> idList, UserInfo userInfo) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(userInfo.getDbName(), "business") + DbConstant.BUSINESS_READ); |
|
|
|
|
int i = 0, fail = 0; |
|
|
|
|
if (idList != null && idList.size() > 0) { |
|
|
|
|
List<CustomsLog> logList = new ArrayList<>(); |
|
|
|
@ -623,8 +613,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String changeBusiness(TdxCustomsRecordDTO entity, UserInfo userInfo) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(userInfo.getDbName(), "business") + DbConstant.BUSINESS_READ); |
|
|
|
|
List<String> idList = entity.getIds(); |
|
|
|
|
if (idList != null && idList.size() > 0) { |
|
|
|
|
for (String id : idList) { |
|
|
|
@ -656,8 +644,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String changeRemark(TdxCustomsRecordDTO entity, UserInfo userInfo) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(userInfo.getDbName(), "business") + DbConstant.BUSINESS_READ); |
|
|
|
|
List<String> idList = entity.getIds(); |
|
|
|
|
if (idList != null && idList.size() > 0) { |
|
|
|
|
for (String id : idList) { |
|
|
|
@ -674,8 +660,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String scanBatchSign(List<String> idList, UserInfo userInfo) { |
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(userInfo.getDbName(), "business") + DbConstant.BUSINESS_READ); |
|
|
|
|
int i = 0, fail = 0; |
|
|
|
|
List<String> gfshAll = UserInfoUtil.getGfshAll(userInfo.getOrg()); |
|
|
|
|
if (idList != null && idList.size() > 0) { |
|
|
|
@ -1231,10 +1215,6 @@ public class CustomsSignServiceImpl extends MpBaseServiceImpl<CustomsRecordDao, |
|
|
|
|
customs.setQsDate(DateUtils.getSqlDateLong()); |
|
|
|
|
customs.setQsType(QsfsEnum.DRQS.getQsfsDm()); |
|
|
|
|
if (tDxCustoms == null) { |
|
|
|
|
|
|
|
|
|
DynamicContextHolder |
|
|
|
|
.push(StringUtils.defaultString(ObjectUtil.fixNull(userInfo.getDbName()), "business") |
|
|
|
|
+ DbConstant.BUSINESS_WRITE); |
|
|
|
|
customsService.save(customs); |
|
|
|
|
} |
|
|
|
|
signToVO(customs, param, true); |
|
|
|
|