Commit 3ef7a3c3 by guanzhenshan

调整同步销售帐号接口,接口禁用的帐号没有禁用的问题

parent 8488fdda
...@@ -55,7 +55,11 @@ public class CompanyAccountSyncJob extends PointJob { ...@@ -55,7 +55,11 @@ public class CompanyAccountSyncJob extends PointJob {
if (result != null && result.size() > 0) { if (result != null && result.size() > 0) {
DcBaseCompanyAccountMapper mapper = SessionUtil.getSession().getMapper(DcBaseCompanyAccountMapper.class); DcBaseCompanyAccountMapper mapper = SessionUtil.getSession().getMapper(DcBaseCompanyAccountMapper.class);
DcBaseCompanyAccount dcBaseCompanyAccount = new DcBaseCompanyAccount(); DcBaseCompanyAccount dcBaseCompanyAccount = new DcBaseCompanyAccount();
try { try {
// Add by Allan at 20200718
mapper.updatesetstatusoff();
for (CompanyAccountInfo companyAccountInfo : result) { for (CompanyAccountInfo companyAccountInfo : result) {
BeanUtils.copyProperties(dcBaseCompanyAccount, companyAccountInfo); BeanUtils.copyProperties(dcBaseCompanyAccount, companyAccountInfo);
dcBaseCompanyAccount.setBjModified(LocalDateTime.now()); dcBaseCompanyAccount.setBjModified(LocalDateTime.now());
......
...@@ -121,4 +121,6 @@ public interface DcBaseCompanyAccountMapper { ...@@ -121,4 +121,6 @@ public interface DcBaseCompanyAccountMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
int upsertSelective(DcBaseCompanyAccount record); int upsertSelective(DcBaseCompanyAccount record);
int updatesetstatusoff();
} }
\ No newline at end of file
...@@ -953,4 +953,8 @@ ...@@ -953,4 +953,8 @@
</if> </if>
limit 1 limit 1
</select> </select>
<update id="updatesetstatusoff">
update dc_base_company_account set status=0,status_cn='禁用'
</update>
</mapper> </mapper>
\ No newline at end of file
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