no message
This commit is contained in:
@ -48,5 +48,5 @@ public interface CompanyInfoMapper extends BaseMapper<CompanyInfo> {
|
||||
* @param companyName 公司名称
|
||||
* @return 公司信息
|
||||
*/
|
||||
CompanyInfo selectByCompanyName(@Param("companyName") String companyName);
|
||||
CompanyInfo selectByCompanyName(@Param("company_name") String companyName);
|
||||
}
|
||||
|
||||
@ -271,9 +271,9 @@ public class ReceiveServiceImpl implements ReceiveService {
|
||||
}
|
||||
|
||||
|
||||
if (companyInfoMapper.selectByCompanyName(companyInfo.getCompanyName())!=null){
|
||||
|
||||
}
|
||||
// if (companyInfoMapper.selectByCompanyName(companyInfo.getCompanyName())!=null){
|
||||
//
|
||||
// }
|
||||
|
||||
if(companyInfoMapper.selectByOpId(companyInfo.getbOpId()) != null){
|
||||
companyInfoMapper.updateByOpId(companyInfo);
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.sczx.sync.po.CompanyInfo">
|
||||
<result column="company_name" property="companyName" />
|
||||
<result column="contact_name" property="contactName" />
|
||||
<result column="company_name" property="company_name" />
|
||||
<result column="contact_name" property="contact_name" />
|
||||
<result column="phone" property="phone" />
|
||||
<result column="address" property="address" />
|
||||
<result column="citys" property="citys" />
|
||||
@ -48,7 +48,7 @@
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM zc_company
|
||||
WHERE company_name = #{companyName}
|
||||
WHERE company_name = #{company_name}
|
||||
AND is_delete = 0
|
||||
</select>
|
||||
|
||||
@ -62,11 +62,11 @@
|
||||
</selectKey>
|
||||
UPDATE zc_company
|
||||
<set>
|
||||
<if test="companyName != null and companyName != ''">
|
||||
company_name = #{companyName},
|
||||
<if test="company_name != null and company_name != ''">
|
||||
company_name = #{company_name},
|
||||
</if>
|
||||
<if test="contactName != null and contactName != ''">
|
||||
contact_name = #{contactName},
|
||||
<if test="contact_name != null and contact_name != ''">
|
||||
contact_name = #{contact_name},
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
address = #{address},
|
||||
@ -96,11 +96,11 @@
|
||||
</selectKey>
|
||||
UPDATE zc_company
|
||||
<set>
|
||||
<if test="companyName != null and companyName != ''">
|
||||
company_name = #{companyName},
|
||||
<if test="company_name != null and company_name != ''">
|
||||
company_name = #{company_name},
|
||||
</if>
|
||||
<if test="contactName != null and contactName != ''">
|
||||
contact_name = #{contactName},
|
||||
<if test="contact_name != null and contact_name != ''">
|
||||
contact_name = #{contact_name},
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
address = #{address},
|
||||
@ -108,8 +108,8 @@
|
||||
<if test="citys != null and citys != ''">
|
||||
citys = #{citys},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete},
|
||||
<if test="is_delete != null">
|
||||
is_delete = #{is_delete},
|
||||
</if>
|
||||
<if test="bOpId != null">
|
||||
b_op_id = #{bOpId},
|
||||
|
||||
Reference in New Issue
Block a user