解决分配仓库不展示的bug

This commit is contained in:
季圣华
2021-05-16 21:36:20 +08:00
parent 68d49f628d
commit 9151341173
2 changed files with 3 additions and 1 deletions

View File

@@ -116,6 +116,8 @@ public class DepotService {
Depot depot = JSONObject.parseObject(obj.toJSONString(), Depot.class);
int result=0;
try{
depot.setType(0);
depot.setIsDefault(false);
result=depotMapper.insertSelective(depot);
logService.insertLog("仓库",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(depot.getName()).toString(), request);