任务优先级,条码新增重量
This commit is contained in:
@@ -181,12 +181,6 @@ class MaterialLabelServiceImpl implements MaterialLabelService {
|
||||
jsonObject.put("is_active", is_active);
|
||||
WQLObject.getWQLObject("md_base_materialLabelMst").update(jsonObject);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String nowDate = DateUtil.format(new Date(), "yyMMddHHmm");
|
||||
System.out.println(nowDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public JSONObject print(JSONObject jsonMst) {
|
||||
@@ -205,6 +199,7 @@ class MaterialLabelServiceImpl implements MaterialLabelService {
|
||||
jsonDtl.put("labeldtl_uuid", IdUtil.simpleUUID());
|
||||
jsonDtl.put("label_code", label_code);
|
||||
jsonDtl.put("order_seq", order_seq);
|
||||
jsonDtl.put("weight", jsonMst.optString("weight"));
|
||||
jsonDtl.put("remark", "");
|
||||
jsonDtl.put("print_by", SecurityUtils.getCurrentUsername());
|
||||
jsonDtl.put("print_time", now);
|
||||
|
||||
@@ -8,6 +8,8 @@ import net.sf.json.JSONObject;
|
||||
import org.nl.exception.BadRequestException;
|
||||
import org.nl.modules.system.service.impl.ParamServiceImpl;
|
||||
import org.nl.utils.SpringContextHolder;
|
||||
import org.nl.wql.WQL;
|
||||
import org.nl.wql.core.bean.WQLObject;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
/**
|
||||
@@ -24,7 +26,12 @@ public class AcsUtil {
|
||||
result.put("data", new JSONObject());
|
||||
return result;
|
||||
}
|
||||
|
||||
// 加优先级 list
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
JSONObject object = list.getJSONObject(i);
|
||||
String value = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode(object.getString("task_type")).getValue();
|
||||
object.put("priority", value);
|
||||
}
|
||||
//ACS地址:127.0.0.1:8010
|
||||
String acsUrl = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("ACS_URL").getValue();
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public abstract class AbstractAcsTask {
|
||||
AcsTaskDto taskDto = new AcsTaskDto();
|
||||
taskDto.setTask_uuid(json.optString("task_uuid"));
|
||||
taskDto.setTask_code(json.optString("task_code"));
|
||||
taskDto.setTask_type("");
|
||||
taskDto.setTask_type(task_type);
|
||||
taskDto.setPriority(priority);
|
||||
taskDto.setStart_device_code(json.optString("start_point_code"));
|
||||
taskDto.setNext_device_code(json.optString("next_point_code"));
|
||||
|
||||
Reference in New Issue
Block a user