Commit 0a4a300b authored by fangxinjiang's avatar fangxinjiang

客户获取接口

parent d3b83d40
...@@ -21,6 +21,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -21,6 +21,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo; import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/** /**
* 客户信息 * 客户信息
* *
...@@ -30,4 +32,5 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -30,4 +32,5 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface TCustomerInfoMapper extends BaseMapper<TCustomerInfo> { public interface TCustomerInfoMapper extends BaseMapper<TCustomerInfo> {
List<TCustomerInfo> getAllUnit();
} }
...@@ -20,6 +20,8 @@ package com.yifu.cloud.plus.v1.yifu.archives.service; ...@@ -20,6 +20,8 @@ package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo; import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo;
import java.util.List;
/** /**
* 客户信息 * 客户信息
* *
...@@ -28,4 +30,5 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo; ...@@ -28,4 +30,5 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo;
*/ */
public interface TCustomerInfoService extends IService<TCustomerInfo> { public interface TCustomerInfoService extends IService<TCustomerInfo> {
List<TCustomerInfo> getAllUnit();
} }
...@@ -22,6 +22,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.mapper.TCustomerInfoMapper; ...@@ -22,6 +22,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.mapper.TCustomerInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TCustomerInfoService; import com.yifu.cloud.plus.v1.yifu.archives.service.TCustomerInfoService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* 客户信息 * 客户信息
* *
...@@ -31,4 +33,8 @@ import org.springframework.stereotype.Service; ...@@ -31,4 +33,8 @@ import org.springframework.stereotype.Service;
@Service @Service
public class TCustomerInfoServiceImpl extends ServiceImpl<TCustomerInfoMapper, TCustomerInfo> implements TCustomerInfoService { public class TCustomerInfoServiceImpl extends ServiceImpl<TCustomerInfoMapper, TCustomerInfo> implements TCustomerInfoService {
@Override
public List<TCustomerInfo> getAllUnit() {
return baseMapper.getAllUnit();
}
} }
...@@ -292,7 +292,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper, ...@@ -292,7 +292,8 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
*/ */
@Override @Override
public R<List<TCustomerInfo>> getAllUint() { public R<List<TCustomerInfo>> getAllUint() {
List<TCustomerInfo> list = tCustomerInfoService.list(Wrappers.<TCustomerInfo>query().lambda().eq(TCustomerInfo::getDeleteFlag, CommonConstants.STATUS_NORMAL)); //List<TCustomerInfo> list = tCustomerInfoService.list(Wrappers.<TCustomerInfo>query().lambda().eq(TCustomerInfo::getDeleteFlag, CommonConstants.STATUS_NORMAL));
List<TCustomerInfo> list = tCustomerInfoService.getAllUnit();
return R.ok(list); return R.ok(list);
} }
......
...@@ -60,4 +60,8 @@ ...@@ -60,4 +60,8 @@
<result property="dataSource" column="data_source"/> <result property="dataSource" column="data_source"/>
<result property="balance" column="BALANCE"/> <result property="balance" column="BALANCE"/>
</resultMap> </resultMap>
<select id="getAllUnit" resultMap="tCustomerInfoMap">
select a.CUSTOMER_ID AS "ID",a.CUSTOMER_NAME AS "CUSTOMER_NAME",a.CUSTOMER_NO AS "CUSTOMER_CODE" from t_settle_domain a GROUP BY A.CUSTOMER_NO
</select>
</mapper> </mapper>
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