Commit 6a5d72fb by zhiwj

bug

parent f8ed5643
......@@ -11,6 +11,7 @@ import com.gic.enterprise.service.DictApiService;
import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.enterprise.utils.UserDetailUtils;
import com.gic.enterprise.web.vo.*;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -91,6 +92,13 @@ public class BillingRecordController {
@RequestMapping("/list-sms")
public RestResponse listSmsRecord(RecordQO recordQO) {
recordQO.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
if (StringUtils.isNotBlank(recordQO.getStartTime())) {
recordQO.setStartTime(recordQO + " 00:00:00");
}
if (StringUtils.isNotBlank(recordQO.getEndTime())) {
recordQO.setEndTime(recordQO + " 23:59:59");
}
ServiceResponse<Page<SmsRecordDTO>> serviceResponse = billingRecordApiService.listSmsRecord(recordQO);
if (serviceResponse.isSuccess()) {
Page page = new Page(serviceResponse.getResult().getCurrentPage(), serviceResponse.getResult().getPageSize(), serviceResponse.getResult().getTotalPage(), serviceResponse.getResult().getTotalCount());
......
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