Commit 00deb619 by 王欣伟

用户帐号创建修改

1 parent c4e266d1
...@@ -25,8 +25,8 @@ public class ZhongliCreateAccountApiController { ...@@ -25,8 +25,8 @@ public class ZhongliCreateAccountApiController {
@ResponseBody @ResponseBody
public R<String> createNewAccount(@RequestBody CommonSyncApiRequest request) { public R<String> createNewAccount(@RequestBody CommonSyncApiRequest request) {
log.info("create account:{}", JSONObject.toJSONString(request)); log.info("create account:{}", JSONObject.toJSONString(request));
if (request.getTenantId()==null || request.getRoleId()==null) { if (request.getTenantId()==null || request.getRoleId()==null || request.getCreateId()==null) {
return R.error("租户ID不能为空,角色ID不能为空"); return R.error("租户ID,角色ID和创建人ID不能为空");
} }
createNewAccountComponent.createNewAccountByOrgRelation(request); createNewAccountComponent.createNewAccountByOrgRelation(request);
......
...@@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONObject;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.HashMap; import java.util.HashMap;
...@@ -39,7 +40,7 @@ public class CreateNewAccountComponent { ...@@ -39,7 +40,7 @@ public class CreateNewAccountComponent {
* 异步创建帐号 * 异步创建帐号
* @param request * @param request
*/ */
// @Async("threadPoolTaskExecutor") @Async("threadPoolTaskExecutor")
public void createNewAccountByOrgRelation(CommonSyncApiRequest request) { public void createNewAccountByOrgRelation(CommonSyncApiRequest request) {
log.info("async start:{}", JSONObject.toJSONString(request)); log.info("async start:{}", JSONObject.toJSONString(request));
String lockKey = "createNewAccountByOrgRelation_lock"; String lockKey = "createNewAccountByOrgRelation_lock";
......
...@@ -1160,6 +1160,9 @@ public class WorkOrderService { ...@@ -1160,6 +1160,9 @@ public class WorkOrderService {
workOrder.setUpdatedDate(new Date()); workOrder.setUpdatedDate(new Date());
workOrderMapper.updateByPrimaryKeySelective(workOrder); workOrderMapper.updateByPrimaryKeySelective(workOrder);
// 修改工单的车架号和车牌号
updateWorkOrderVin(workOrder, auditBO);
//生成工单图片信息 //生成工单图片信息
generateWorkOrderDocs(auditBO, workOrder); generateWorkOrderDocs(auditBO, workOrder);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!