wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
service-community/src/main/java/com/java110/community/cmd/communityLocation/UpdateCommunityLocationCmd.java
@@ -21,16 +21,15 @@
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.intf.community.ICommunityLocationV1InnerServiceSMO;
import com.java110.po.community.CommunityLocationPo;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
@@ -46,7 +45,7 @@
@Java110Cmd(serviceCode = "communityLocation.updateCommunityLocation")
public class UpdateCommunityLocationCmd extends Cmd {
  private static Logger logger = LoggerFactory.getLogger(UpdateCommunityLocationCmd.class);
    private static Logger logger = LoggerFactory.getLogger(UpdateCommunityLocationCmd.class);
    @Autowired
@@ -55,7 +54,7 @@
    @Override
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        Assert.hasKeyAndValue(reqJson, "locationId", "locationId不能为空");
Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
        Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
    }
@@ -63,7 +62,7 @@
    @Java110Transactional
    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
       CommunityLocationPo communityLocationPo = BeanConvertUtil.covertBean(reqJson, CommunityLocationPo.class);
        CommunityLocationPo communityLocationPo = BeanConvertUtil.covertBean(reqJson, CommunityLocationPo.class);
        int flag = communityLocationV1InnerServiceSMOImpl.updateCommunityLocation(communityLocationPo);
        if (flag < 1) {