md
This commit is contained in:
parent
1e0e196eef
commit
ae0cb7c722
@ -67,4 +67,7 @@ public interface EmisDestinationMapper extends BaseMapper<EmisDestination>
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteEmisDestinationByIds(Long[] ids);
|
public int deleteEmisDestinationByIds(Long[] ids);
|
||||||
|
|
||||||
|
|
||||||
|
public EmisDestination getEmisDestinationByDestCode(String destCode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,4 +78,6 @@ public interface EmisTransProductMapper extends BaseMapper<EmisTransProduct>
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteEmisTransProductByIds(Long[] ids);
|
public int deleteEmisTransProductByIds(Long[] ids);
|
||||||
|
|
||||||
|
public EmisTransProduct getEmisTransProductByProdCode(String prodCode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -363,19 +363,10 @@ public class EmisBaseService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public EmisDestination getDestinationByCode(String destCode){
|
public EmisDestination getDestinationByCode(String destCode){
|
||||||
|
|
||||||
if(StringUtils.isEmpty(destCode)){
|
if(StringUtils.isEmpty(destCode)){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
EmisDestination queryEmisDestination = new EmisDestination();
|
return emisDestinationMapper.getEmisDestinationByDestCode(destCode);
|
||||||
queryEmisDestination.setDestCode(destCode);
|
|
||||||
|
|
||||||
List<EmisDestination> list=emisDestinationMapper.selectEmisDestinationList(queryEmisDestination);
|
|
||||||
if(list!=null){
|
|
||||||
return list.get(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1824,14 +1815,7 @@ public class EmisBaseService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public EmisTransProduct getTransProductByCode(String code) {
|
public EmisTransProduct getTransProductByCode(String code) {
|
||||||
EmisTransProduct emisTransProduct = new EmisTransProduct();
|
return emisTransProductMapper.getEmisTransProductByProdCode(code);
|
||||||
emisTransProduct.setProdCode(code);
|
|
||||||
List<EmisTransProduct> list=emisTransProductMapper.selectEmisTransProductList(emisTransProduct);
|
|
||||||
if(!CollectionUtils.isEmpty(list)) {
|
|
||||||
return list.get(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -73,6 +73,12 @@
|
|||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getEmisDestinationByDestCode" parameterType="String" resultMap="EmisDestinationResult">
|
||||||
|
select id, dest_code, dest_name, dest_name_en, status, line_code, country, site_code, province, city, county, town, is_hinterland, country_area_id, remark, tenant_id, del_flag, create_by, create_site, create_time, update_by, update_site, update_time
|
||||||
|
from emis_destination a
|
||||||
|
where a.del_flag='0' and a.dest_code = #{destCode}
|
||||||
|
</select>
|
||||||
|
|
||||||
<insert id="insertEmisDestination" parameterType="EmisDestination">
|
<insert id="insertEmisDestination" parameterType="EmisDestination">
|
||||||
insert into emis_destination
|
insert into emis_destination
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|||||||
@ -104,6 +104,12 @@
|
|||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getEmisTransProductByProdCode" parameterType="String" resultMap="EmisTransProductResult">
|
||||||
|
select id, prod_code, prod_name, prod_name_en, status, country, trans_line_code, trans_line, carry_type, trans_type, aging_desc, aging_flag, min_aging, max_aging, order_num, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
|
from emis_trans_product a
|
||||||
|
where a.del_flag='0' and a.prod_code = #{prodCode}
|
||||||
|
</select>
|
||||||
|
|
||||||
<insert id="insertEmisTransProduct" parameterType="EmisTransProduct" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertEmisTransProduct" parameterType="EmisTransProduct" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into emis_trans_product
|
insert into emis_trans_product
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user