Skip to content

Commit

Permalink
Redmine #5460: 顧客マスタ 入力した住所がcustomer.address1_1列に保存される
Browse files Browse the repository at this point in the history
- Removed address1_1 usage while searching customer.
  • Loading branch information
think-jagjit committed Feb 14, 2022
1 parent a862409 commit be5afd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/servers_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,6 @@ class ServersController extends WebServicesController
'SI1' => 'xsd:string',
'TYO1' => 'xsd:string',
'ADDRESS1' => 'xsd:string',
'ADDRESS1_1' => 'xsd:string',
'TEL1' => 'xsd:string',
'TEL2' => 'xsd:string',
'BIRTHDATE' => 'xsd:string',
Expand Down Expand Up @@ -3578,7 +3577,7 @@ function wsSearchCustomer($sessionid, $param)
);
//--------------------------------------------------------------------------------------------------------------------
} elseif ($key == "ADDRESS") {
$criteria['(ADDRESS1_1 LIKE ? OR concat(KEN1, SITYO1, MANSIONMEI, ADDRESS1) LIKE ?)'] = array('%' . $val . '%', '%' . $val . '%');
$criteria['concat(KEN1, SITYO1, MANSIONMEI, ADDRESS1) LIKE ?'] = array('%' . $val . '%');
} elseif ($key == "keyword") {
$kword['(TEL1 LIKE ? OR TEL2 LIKE ?)'] = array('%' . $val . '%', '%' . $val . '%');
$kword['(MAILADDRESS1 LIKE ? OR MAILADDRESS2 LIKE ?)'] = array('%' . $val . '%', '%' . $val . '%');
Expand All @@ -3593,7 +3592,7 @@ function wsSearchCustomer($sessionid, $param)
'%' . $kanafull . '%'
);
//--------------------------------------------------------------------------------------------------------------------
$kword['(ADDRESS1_1 LIKE ? OR concat(KEN1, SITYO1, MANSIONMEI, ADDRESS1) LIKE ?)'] = array('%' . $val . '%', '%' . $val . '%');
$kword['concat(KEN1, SITYO1, MANSIONMEI, ADDRESS1) LIKE ?'] = array('%' . $val . '%');
$kword['IF(CONVERT(?, SIGNED INTEGER) > 0, (CSTORECODE = ?), "")'] = array($val, $val);
$keyword['OR'] = $kword;
$criteria[] = $keyword;
Expand All @@ -3617,7 +3616,7 @@ function wsSearchCustomer($sessionid, $param)
$fields = array(
'CCODE', 'CNUMBER', 'CID', 'CSTORECODE', 'CNAME', 'CNAMEKANA',
'SEX', 'ZIPCODE1', 'KEN1', 'SITYO1', 'MANSIONMEI', 'SI1', 'REGULAR',
'TYO1', 'ADDRESS1', 'ADDRESS1_1', 'TEL1', 'TEL2', 'BIRTHDATE', 'MEMBERSCATEGORY',
'TYO1', 'ADDRESS1', 'TEL1', 'TEL2', 'BIRTHDATE', 'MEMBERSCATEGORY',
'CHRISTIAN_ERA', 'AGERANGE', 'MAILADDRESS1', 'MAILADDRESS2', 'MAILKUBUN', 'FIRSTDATE',
'HOWKNOWSCODE',
'BLOODTYPE', 'MEMBER_CODE', 'SMOKING', 'DMKUBUN', 'JOBINDUSTRYCODE', 'CREATEDFROMCODE', //add by albert 2016-07-15 --> redmine 0650
Expand Down

0 comments on commit be5afd3

Please sign in to comment.