打印机 contentType固定local
This commit is contained in:
parent
78fc29fb0f
commit
55c0b270a0
|
|
@ -104,7 +104,6 @@ public class TbPrintPCMachineService {
|
|||
public Result insert(PrintMachineDto resources) {
|
||||
TbPrintPCMachine tbPrintMachine = new TbPrintPCMachine();
|
||||
tbPrintMachine.setCreatedAt(Instant.now().toEpochMilli());
|
||||
tbPrintMachine.setContentType("local");
|
||||
if (resources.getConfig() != null) {
|
||||
if (CollectionUtils.isEmpty(resources.getConfig().getCategoryList())) {
|
||||
resources.getConfig().setCategoryList(null);
|
||||
|
|
@ -112,6 +111,7 @@ public class TbPrintPCMachineService {
|
|||
tbPrintMachine.setConfig(JSONUtil.toJSONString(resources.getConfig(), true));
|
||||
}
|
||||
BeanUtils.copyProperties(resources, tbPrintMachine);
|
||||
tbPrintMachine.setContentType("local");
|
||||
tbPrintMachineMapper.insert(tbPrintMachine);
|
||||
return Result.success(CodeEnum.SUCCESS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue