...
|
...
|
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/lock")
|
|
|
@Slf4j
|
...
|
...
|
@@ -37,10 +39,10 @@ public class CustomsLockController { |
|
|
|
|
|
log.info("收到关锁通知");
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
sb.append("施解封时间:").append(feedBack.locktime).append("\n")
|
|
|
.append("关锁秘钥:").append(feedBack.secret).append("\n")
|
|
|
.append("施解封内容:").append(feedBack.feedbackconten).append("\n")
|
|
|
.append("施解封状态:").append(feedBack.feedbackcode).append("\n");
|
|
|
// sb.append("施解封时间:").append(feedBack.locktime).append("\n")
|
|
|
// .append("关锁秘钥:").append(feedBack.secret).append("\n")
|
|
|
// .append("施解封内容:").append(feedBack.feedbackconten).append("\n")
|
|
|
// .append("施解封状态:").append(feedBack.feedbackcode).append("\n");
|
|
|
|
|
|
String LOCK_TYPE_UNLOCK = "2";
|
|
|
/**
|
...
|
...
|
@@ -77,13 +79,16 @@ public class CustomsLockController { |
|
|
sb.append("关锁缓存信息读取失败");
|
|
|
gatherInfo = new GatherInfo();
|
|
|
gatherInfo.setBarcode(feedBack.barcode);
|
|
|
gatherInfo.setGrosswt(new BigDecimal(0));
|
|
|
commandLogService.commandlog(gatherInfo,false,sb.toString(),null,null,0.0,0.0,0.0,0.0);
|
|
|
log.info("[LOCK-RSP]-关锁缓存信息读取失败");
|
|
|
}
|
|
|
}else {
|
|
|
sb.append("关锁缓存信息读取失败");
|
|
|
sb.append("关锁施解封失败");
|
|
|
GatherInfo gatherInfo = new GatherInfo();
|
|
|
gatherInfo.setBarcode(feedBack.barcode);
|
|
|
gatherInfo.setGrosswt(new BigDecimal(0));
|
|
|
|
|
|
commandLogService.commandlog(gatherInfo,false,sb.toString(),null,null,0.0,0.0,0.0,0.0);
|
|
|
log.info("[LOCK-RSP]-关锁施解封失败");
|
|
|
}
|
...
|
...
|
|