no message

This commit is contained in:
2025-09-01 14:13:11 +08:00
parent 47c9368a96
commit 09709d1686
3 changed files with 17 additions and 17 deletions

View File

@ -48,5 +48,5 @@ public interface CompanyInfoMapper extends BaseMapper<CompanyInfo> {
* @param companyName 公司名称 * @param companyName 公司名称
* @return 公司信息 * @return 公司信息
*/ */
CompanyInfo selectByCompanyName(@Param("companyName") String companyName); CompanyInfo selectByCompanyName(@Param("company_name") String companyName);
} }

View File

@ -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){ if(companyInfoMapper.selectByOpId(companyInfo.getbOpId()) != null){
companyInfoMapper.updateByOpId(companyInfo); companyInfoMapper.updateByOpId(companyInfo);

View File

@ -4,8 +4,8 @@
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.sczx.sync.po.CompanyInfo"> <resultMap id="BaseResultMap" type="com.sczx.sync.po.CompanyInfo">
<result column="company_name" property="companyName" /> <result column="company_name" property="company_name" />
<result column="contact_name" property="contactName" /> <result column="contact_name" property="contact_name" />
<result column="phone" property="phone" /> <result column="phone" property="phone" />
<result column="address" property="address" /> <result column="address" property="address" />
<result column="citys" property="citys" /> <result column="citys" property="citys" />
@ -48,7 +48,7 @@
SELECT SELECT
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
FROM zc_company FROM zc_company
WHERE company_name = #{companyName} WHERE company_name = #{company_name}
AND is_delete = 0 AND is_delete = 0
</select> </select>
@ -62,11 +62,11 @@
</selectKey> </selectKey>
UPDATE zc_company UPDATE zc_company
<set> <set>
<if test="companyName != null and companyName != ''"> <if test="company_name != null and company_name != ''">
company_name = #{companyName}, company_name = #{company_name},
</if> </if>
<if test="contactName != null and contactName != ''"> <if test="contact_name != null and contact_name != ''">
contact_name = #{contactName}, contact_name = #{contact_name},
</if> </if>
<if test="address != null and address != ''"> <if test="address != null and address != ''">
address = #{address}, address = #{address},
@ -96,11 +96,11 @@
</selectKey> </selectKey>
UPDATE zc_company UPDATE zc_company
<set> <set>
<if test="companyName != null and companyName != ''"> <if test="company_name != null and company_name != ''">
company_name = #{companyName}, company_name = #{company_name},
</if> </if>
<if test="contactName != null and contactName != ''"> <if test="contact_name != null and contact_name != ''">
contact_name = #{contactName}, contact_name = #{contact_name},
</if> </if>
<if test="address != null and address != ''"> <if test="address != null and address != ''">
address = #{address}, address = #{address},
@ -108,8 +108,8 @@
<if test="citys != null and citys != ''"> <if test="citys != null and citys != ''">
citys = #{citys}, citys = #{citys},
</if> </if>
<if test="isDelete != null"> <if test="is_delete != null">
is_delete = #{isDelete}, is_delete = #{is_delete},
</if> </if>
<if test="bOpId != null"> <if test="bOpId != null">
b_op_id = #{bOpId}, b_op_id = #{bOpId},