长泰药品下载收费项目与物资字典修改

jydyyy
yewj 5 months ago
parent 5a032cb1ec
commit 23fc81dcde

@ -286,8 +286,24 @@ public class CtqyyClient extends CommonHttpClient {
products.setPrepnSpec(dict.getPHYSIC_SPEC());
products.setPrepnUnit(dict.getPHYSIC_UNIT());
products.setProductType(2);
products.setId(IdUtil.getSnowflakeNextId());
products.setThirdSysFk("thirdId1");
return products;
}).collect(Collectors.toList());
thrProductsDao.batchInsert(thrProductsEntityList);
thrProductsEntityList = thrProductsEntityList.stream()
.collect(Collectors.groupingBy(ThrProductsEntity::getYbbm,
LinkedHashMap::new,
Collectors.collectingAndThen(Collectors.toList(), list -> list.get(0))))
.values()
.stream()
.collect(Collectors.toList());
}
for (ThrProductsEntity entity : thrProductsEntityList) {
entity.setId(null);
entity.setRemark(entity.getCode());
entity.setCode(entity.getYbbm());
}
PageSimpleResponse<ThrProductsEntity> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(page.getTotal());
@ -2263,6 +2279,7 @@ public class CtqyyClient extends CommonHttpClient {
JSONObject dataJson = JSONObject.parseObject(jsonStr);
ybClient.ybPost("3506A", dataJson);
}
/**
*
*
@ -2270,11 +2287,11 @@ public class CtqyyClient extends CommonHttpClient {
*/
@Override
public BaseResponse getBuyType() {
Map<String,String[]> buyTypeMap= new HashMap<>();
buyTypeMap.put("buyType_3501",buyType_3501);
buyTypeMap.put("buyType_3502",buyType_3502);
buyTypeMap.put("buyType_3505",buyType_3505);
buyTypeMap.put("buyType_3506",buyType_3506);
Map<String, String[]> buyTypeMap = new HashMap<>();
buyTypeMap.put("buyType_3501", buyType_3501);
buyTypeMap.put("buyType_3502", buyType_3502);
buyTypeMap.put("buyType_3505", buyType_3505);
buyTypeMap.put("buyType_3506", buyType_3506);
return ResultVOUtils.success(buyTypeMap);
}
}

@ -4,6 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.mipsdl.entity.thrsys.ThrProductsEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface ThrProductsDao extends BaseMapper<ThrProductsEntity> {
boolean batchInsert(List<ThrProductsEntity> thrProducts);
}

@ -1,47 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.mipsdl.dao.thrsys.ThrProductsDao">
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.thrsys.ThrProductsEntity">
<!--@mbg.generated-->
<!--@Table thr_products-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="measname" jdbcType="VARCHAR" property="measname" />
<result column="spec" jdbcType="VARCHAR" property="spec" />
<result column="registerNo" jdbcType="VARCHAR" property="registerNo" />
<result column="manufactory" jdbcType="VARCHAR" property="manufactory" />
<result column="thirdSysFk" jdbcType="VARCHAR" property="thirdSysFk" />
<result column="cplb" jdbcType="VARCHAR" property="cplb" />
<result column="flbm" jdbcType="VARCHAR" property="flbm" />
<result column="qxlb" jdbcType="VARCHAR" property="qxlb" />
<result column="ybbm" jdbcType="VARCHAR" property="ybbm" />
<result column="sptm" jdbcType="VARCHAR" property="sptm" />
<result column="tyshxydm" jdbcType="VARCHAR" property="tyshxydm" />
<result column="zczbhhzbapzbh" jdbcType="VARCHAR" property="zczbhhzbapzbh" />
<result column="ylqxzcrbarmc" jdbcType="VARCHAR" property="ylqxzcrbarmc" />
<result column="ylqxzcrbarywmc" jdbcType="VARCHAR" property="ylqxzcrbarywmc" />
<result column="cpms" jdbcType="LONGVARCHAR" property="cpms" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="supName" jdbcType="VARCHAR" property="supName" />
<result column="model" jdbcType="VARCHAR" property="model" />
<result column="standard" jdbcType="VARCHAR" property="standard" />
<result column="qtbm" jdbcType="VARCHAR" property="qtbm" />
<result column="zczyxqz" jdbcType="VARCHAR" property="zczyxqz" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
<result column="price" jdbcType="VARCHAR" property="price" />
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm,
qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, updateTime,
supName, model, `standard`, qtbm, zczyxqz, remark, remark1, remark2, remark3, price,
`createUser`, createTime, updateUser
</sql>
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.thrsys.ThrProductsEntity">
<!--@mbg.generated-->
<!--@Table thr_products-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="measname" jdbcType="VARCHAR" property="measname"/>
<result column="spec" jdbcType="VARCHAR" property="spec"/>
<result column="registerNo" jdbcType="VARCHAR" property="registerNo"/>
<result column="manufactory" jdbcType="VARCHAR" property="manufactory"/>
<result column="thirdSysFk" jdbcType="VARCHAR" property="thirdSysFk"/>
<result column="cplb" jdbcType="VARCHAR" property="cplb"/>
<result column="flbm" jdbcType="VARCHAR" property="flbm"/>
<result column="qxlb" jdbcType="VARCHAR" property="qxlb"/>
<result column="ybbm" jdbcType="VARCHAR" property="ybbm"/>
<result column="sptm" jdbcType="VARCHAR" property="sptm"/>
<result column="tyshxydm" jdbcType="VARCHAR" property="tyshxydm"/>
<result column="zczbhhzbapzbh" jdbcType="VARCHAR" property="zczbhhzbapzbh"/>
<result column="ylqxzcrbarmc" jdbcType="VARCHAR" property="ylqxzcrbarmc"/>
<result column="ylqxzcrbarywmc" jdbcType="VARCHAR" property="ylqxzcrbarywmc"/>
<result column="cpms" jdbcType="LONGVARCHAR" property="cpms"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="supName" jdbcType="VARCHAR" property="supName"/>
<result column="model" jdbcType="VARCHAR" property="model"/>
<result column="standard" jdbcType="VARCHAR" property="standard"/>
<result column="qtbm" jdbcType="VARCHAR" property="qtbm"/>
<result column="zczyxqz" jdbcType="VARCHAR" property="zczyxqz"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="remark1" jdbcType="VARCHAR" property="remark1"/>
<result column="remark2" jdbcType="VARCHAR" property="remark2"/>
<result column="remark3" jdbcType="VARCHAR" property="remark3"/>
<result column="price" jdbcType="VARCHAR" property="price"/>
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id,
code,
`name`,
measname,
spec,
registerNo,
manufactory,
thirdSysFk,
cplb,
flbm,
qxlb,
ybbm,
sptm,
tyshxydm,
zczbhhzbapzbh,
ylqxzcrbarmc,
ylqxzcrbarywmc,
cpms,
updateTime,
supName,
model,
`standard`,
qtbm,
zczyxqz,
remark,
remark1,
remark2,
remark3,
price,
`createUser`,
createTime,
updateUser
</sql>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert ignore into thr_products
(id, code, `name`, measname, spec, registerNo, manufactory, thirdSysFk, cplb, flbm,
qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms,
updateTime, supName, model, `standard`, qtbm, zczyxqz, remark, remark1, remark2,
remark3, price, `createUser`, createTime, updateUser, manufactoryCode, supCode,
`type`, prcitmcode, productType, prepnSpec, prepnUnit)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=BIGINT}, #{item.code,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR},
#{item.measname,jdbcType=VARCHAR}, #{item.spec,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR},
#{item.manufactory,jdbcType=VARCHAR}, #{item.thirdSysFk,jdbcType=VARCHAR}, #{item.cplb,jdbcType=VARCHAR},
#{item.flbm,jdbcType=VARCHAR}, #{item.qxlb,jdbcType=VARCHAR}, #{item.ybbm,jdbcType=VARCHAR},
#{item.sptm,jdbcType=VARCHAR}, #{item.tyshxydm,jdbcType=VARCHAR}, #{item.zczbhhzbapzbh,jdbcType=VARCHAR},
#{item.ylqxzcrbarmc,jdbcType=VARCHAR}, #{item.ylqxzcrbarywmc,jdbcType=VARCHAR},
#{item.cpms,jdbcType=LONGVARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.supName,jdbcType=VARCHAR},
#{item.model,jdbcType=VARCHAR}, #{item.standard,jdbcType=VARCHAR}, #{item.qtbm,jdbcType=VARCHAR},
#{item.zczyxqz,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.price,jdbcType=VARCHAR},
#{item.createUser,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.updateUser,jdbcType=VARCHAR},
#{item.manufactoryCode,jdbcType=VARCHAR}, #{item.supCode,jdbcType=VARCHAR}, #{item.type,jdbcType=TINYINT},
#{item.prcitmcode,jdbcType=VARCHAR}, #{item.productType,jdbcType=TINYINT},
#{item.prepnSpec,jdbcType=VARCHAR},
#{item.prepnUnit,jdbcType=VARCHAR})
</foreach>
</insert>
</mapper>

Loading…
Cancel
Save