Commit 00deb619 by 王欣伟

用户帐号创建修改

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