wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
service-user/src/main/java/com/java110/user/cmd/owner/DeleteOwnerCmd.java
@@ -3,8 +3,9 @@
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.annotation.Java110Cmd;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.AbstractServiceCmdListener;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.dto.RoomDto;
import com.java110.dto.owner.OwnerAppUserDto;
@@ -27,7 +28,7 @@
import java.util.List;
@Java110Cmd(serviceCode = "owner.deleteOwner")
public class DeleteOwnerCmd extends AbstractServiceCmdListener {
public class DeleteOwnerCmd extends Cmd {
    @Autowired
    private IOwnerInnerServiceSMO ownerInnerServiceSMOImpl;
@@ -88,9 +89,9 @@
    }
    @Override
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
        JSONArray businesses = new JSONArray();
        JSONObject businessOwner = new JSONObject();
        businessOwner.put("memberId", reqJson.getString("memberId"));
@@ -110,7 +111,7 @@
            if (ownerAppUserDtos != null && ownerAppUserDtos.size() > 0) {
                for (OwnerAppUserDto ownerAppUser : ownerAppUserDtos) {
                    OwnerAppUserPo ownerAppUserPo = BeanConvertUtil.covertBean(ownerAppUser, OwnerAppUserPo.class);
                    flag = ownerAppUserV1InnerServiceSMOImpl.saveOwnerAppUser(ownerAppUserPo);
                    flag = ownerAppUserV1InnerServiceSMOImpl.deleteOwnerAppUser(ownerAppUserPo);
                    if (flag < 1) {
                        throw new CmdException("删除失败");
                    }