Commit fa7f9016 by qwmqiuwenmin

fix

parent f3fbff3f
......@@ -159,6 +159,11 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
hr.setResult(department);
//调微信的修改接口
TabHaobanDepartment tab = departmentService.selectById(department.getDepartmentId());
if(tab == null){
hr.setErrorCode(0);
hr.setMessage("部门不存在");
return hr;
}
logger.info("【部门修改】tab={}",JSON.toJSONString(tab));
WxEnterpriseDTO enterpriseDTO = wxEnterpriseService.selectById(tab.getWxEnterpriseId());
TabHaobanWxApplication application = wxApplicationService.selectByWxEnterpriseIdAndApplicationType(tab.getWxEnterpriseId(),1);
......
......@@ -30,6 +30,7 @@
<include refid="Base_Column_List" />
from tab_haoban_department
where department_id = #{departmentId,jdbcType=VARCHAR}
and status_flag = 1
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tab_haoban_department
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment