Commit 3ef7a3c3 by guanzhenshan

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

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