客户
This commit is contained in:
@@ -145,7 +145,7 @@ public class CrmCustomerTempRest {
|
|||||||
@GetMapping("/getCustomerByOrgSid")
|
@GetMapping("/getCustomerByOrgSid")
|
||||||
public ResultBean getCustomerByOrgSid(@RequestParam("orgSid") String orgSid) {
|
public ResultBean getCustomerByOrgSid(@RequestParam("orgSid") String orgSid) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
Integer w = crmCustomerTempService.getCustomerByOrgSid(orgSid);
|
List<CrmCustomerTempVo> w = crmCustomerTempService.getCustomerByOrgSid(orgSid);
|
||||||
return rb.success().setData(w);
|
return rb.success().setData(w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,5 +36,5 @@ public interface CrmCustomerTempMapper extends BaseMapper<CrmCustomerTemp> {
|
|||||||
|
|
||||||
int selBySid(String customerSid);
|
int selBySid(String customerSid);
|
||||||
int updateRemindAndByCustomerSid(@Param("customerSid") String customerSid, @Param("remind_day") String remind_day, @Param("remind_remark") String remind_remark, @Param("isOnRemind") String isOnRemind, @Param("isOnRemindkey") String isOnRemindkey, @Param("follow_state") String follow_state);
|
int updateRemindAndByCustomerSid(@Param("customerSid") String customerSid, @Param("remind_day") String remind_day, @Param("remind_remark") String remind_remark, @Param("isOnRemind") String isOnRemind, @Param("isOnRemindkey") String isOnRemindkey, @Param("follow_state") String follow_state);
|
||||||
int getCustomerByOrgSid(@Param("orgSid") String orgSid);
|
List<CrmCustomerTempVo> getCustomerByOrgSid(@Param("orgSid") String orgSid);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
from crm_customer
|
from crm_customer
|
||||||
where sid = #{customerSid}
|
where sid = #{customerSid}
|
||||||
</select>
|
</select>
|
||||||
<select id="getCustomerByOrgSid" resultType="java.lang.Integer">
|
<select id="getCustomerByOrgSid" resultType="com.yxt.customer.biz.crmcustomer.CrmCustomerTempVo">
|
||||||
select count(a.sid) from crm_customer a LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid where s.orgSidPath like #{orgSid} and a.isDelete !='1'
|
select * from crm_customer a LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid where s.orgSidPath like #{orgSid} and a.isDelete !='1'
|
||||||
</select>
|
</select>
|
||||||
<update id="updateRemindAndByCustomerSid">
|
<update id="updateRemindAndByCustomerSid">
|
||||||
UPDATE crm_customer
|
UPDATE crm_customer
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ public class CrmCustomerTempService extends MybatisBaseService<CrmCustomerTempMa
|
|||||||
public int updateRemindAndByCustomerSid(String customerSid, String remind_day, String remind_remark, String isOnRemind, String isOnRemindkey, String follow_state) {
|
public int updateRemindAndByCustomerSid(String customerSid, String remind_day, String remind_remark, String isOnRemind, String isOnRemindkey, String follow_state) {
|
||||||
return baseMapper.updateRemindAndByCustomerSid(customerSid, remind_day, remind_remark, isOnRemind, isOnRemindkey, follow_state);
|
return baseMapper.updateRemindAndByCustomerSid(customerSid, remind_day, remind_remark, isOnRemind, isOnRemindkey, follow_state);
|
||||||
}
|
}
|
||||||
public Integer getCustomerByOrgSid(String orgSid) {
|
public List<CrmCustomerTempVo> getCustomerByOrgSid(String orgSid) {
|
||||||
return baseMapper.getCustomerByOrgSid(orgSid);
|
return baseMapper.getCustomerByOrgSid(orgSid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user